- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for Barz (0.02 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/ko/docs/tutorial/body-updates.md
`PUT`은 기존 데이터를 **대체**해야 하는 데이터를 받는 데 사용합니다. ### 대체 시 주의사항 { #warning-about-replacing } 즉, `PUT`으로 항목 `bar`를 업데이트하면서 다음과 같은 body를 보낸다면: ```Python { "name": "Barz", "price": 3, "description": None, } ``` 이미 저장된 속성 `"tax": 20.2`가 포함되어 있지 않기 때문에, 입력 모델은 `"tax": 10.5`라는 기본값을 사용하게 됩니다. 그리고 데이터는 그 “새로운” `tax` 값 `10.5`로 저장됩니다.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 4.8K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/body-updates.md
{* ../../docs_src/body_updates/tutorial001_py310.py hl[28:33] *} `PUT` 用於接收應該取代現有資料的資料。 ### 關於取代的警告 { #warning-about-replacing } 這表示,如果你想用 `PUT` 並在 body 中包含以下內容來更新項目 `bar`: ```Python { "name": "Barz", "price": 3, "description": None, } ``` 由於這裡沒有包含已儲存的屬性 `"tax": 20.2`,輸入的模型會採用預設值 `"tax": 10.5`。 最終資料會以這個「新的」 `tax` 值 `10.5` 被儲存。 ## 使用 `PATCH` 進行部分更新 { #partial-updates-with-patch }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 3.7K bytes - Click Count (0) -
tests/test_tutorial/test_body_updates/test_tutorial001.py
"tax": 10.5, "tags": [], } def test_put(client: TestClient): response = client.put( "/items/bar", json={"name": "Barz", "price": 3, "description": None} ) assert response.json() == { "name": "Barz", "description": None, "price": 3, "tax": 10.5, "tags": [], } def test_openapi_schema(client: TestClient):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 7.3K bytes - Click Count (0) -
docs/tr/docs/tutorial/body-updates.md
### Değiştirerek güncelleme uyarısı { #warning-about-replacing } Bu, `bar` öğesini `PUT` ile, body içinde şu verilerle güncellemek isterseniz: ```Python { "name": "Barz", "price": 3, "description": None, } ``` zaten kayıtlı olan `"tax": 20.2` alanını içermediği için, input model `"tax": 10.5` varsayılan değerini kullanacaktır.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 4.5K bytes - Click Count (0) -
docs/fr/docs/tutorial/body-updates.md
### Avertissement concernant le remplacement { #warning-about-replacing } Cela signifie que si vous souhaitez mettre à jour l’élément `bar` avec `PUT` et un corps contenant : ```Python { "name": "Barz", "price": 3, "description": None, } ``` comme il n’inclut pas l’attribut déjà enregistré « tax »: 20.2, le modèle d’entrée prendrait la valeur par défaut « tax »: 10.5.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 4.9K bytes - Click Count (0) -
docs/tr/docs/advanced/generate-clients.md
Ancak üretilen client için, client'ları üretmeden hemen önce OpenAPI operation ID'lerini **değiştirip**, method isimlerini daha hoş ve **temiz** hale getirebiliriz. OpenAPI JSON'u `openapi.json` diye bir dosyaya indirip, şu tarz bir script ile **öndeki tag'i kaldırabiliriz**: {* ../../docs_src/generate_clients/tutorial004_py310.py *} //// tab | Node.js ```Javascript {!> ../../docs_src/generate_clients/tutorial004.js!} ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 10.2K bytes - Click Count (0)