- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for Barz (0.01 sec)
-
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):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 6.6K bytes - Viewed (0) -
tests/test_tutorial/test_body_updates/test_tutorial002.py
"tax": 10.5, "tags": ["tag1", "tag2"], } def test_patch_name(client: TestClient): response = client.patch( "/items/bar", json={"name": "Barz"}, ) assert response.json() == { "name": "Barz", "description": "The bartenders", "price": 62, "tax": 20.2, "tags": [], } def test_openapi_schema(client: TestClient):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 7.1K bytes - Viewed (0) -
docs/de/docs/tutorial/body-updates.md
### Warnung bezüglich des Ersetzens { #warning-about-replacing } Das bedeutet, dass, wenn Sie den Artikel `bar` aktualisieren wollen, mittels `PUT` und folgendem Body: ```Python { "name": "Barz", "price": 3, "description": None, } ``` weil das bereits gespeicherte Attribut `"tax": 20.2` nicht enthalten ist, das Eingabemodell den Defaultwert `"tax": 10.5` erhalten würde.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 24 10:28:19 UTC 2025 - 5.1K bytes - Viewed (0) -
docs/en/docs/tutorial/body-updates.md
### Warning about replacing { #warning-about-replacing } That means that if you want to update the item `bar` using `PUT` with a body containing: ```Python { "name": "Barz", "price": 3, "description": None, } ``` because it doesn't include the already stored attribute `"tax": 20.2`, the input model would take the default value of `"tax": 10.5`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 4.1K bytes - Viewed (0) -
docs/es/docs/tutorial/body-updates.md
### Advertencia sobre el reemplazo { #warning-about-replacing } Esto significa que si quieres actualizar el ítem `bar` usando `PUT` con un body que contenga: ```Python { "name": "Barz", "price": 3, "description": None, } ``` debido a que no incluye el atributo ya almacenado `"tax": 20.2`, el modelo de entrada tomaría el valor por defecto de `"tax": 10.5`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 5.1K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-updates.md
### Предупреждение о замене { #warning-about-replacing } Это означает, что если вы хотите обновить элемент `bar`, используя `PUT` с телом, содержащим: ```Python { "name": "Barz", "price": 3, "description": None, } ``` поскольку оно не включает уже сохраненный атрибут `"tax": 20.2`, входная модель примет значение по умолчанию `"tax": 10.5`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 30 11:24:39 UTC 2025 - 8.2K bytes - Viewed (0) -
docs/pt/docs/tutorial/body-updates.md
### Aviso sobre a substituição { #warning-about-replacing } Isso significa que, se você quiser atualizar o item `bar` usando `PUT` com um corpo contendo: ```Python { "name": "Barz", "price": 3, "description": None, } ``` Como ele não inclui o atributo já armazenado `"tax": 20.2`, o modelo de entrada assumiria o valor padrão de `"tax": 10.5`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 5.1K bytes - Viewed (0)