- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 252 for Price (1 sec)
-
docs/es/docs/tutorial/response-model.md
Entonces, si envías un request a esa *path operation* para el ítem con ID `foo`, el response (no incluyendo valores por defecto) será: ```JSON { "name": "Foo", "price": 50.2 } ``` /// info | Información En Pydantic v1 el método se llamaba `.dict()`, fue deprecado (pero aún soportado) en Pydantic v2, y renombrado a `.model_dump()`.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 17.7K bytes - Viewed (0) -
docs/ko/docs/tutorial/body.md
```JSON { "name": "Foo", "description": "선택적인 설명란", "price": 45.2, "tax": 3.5 } ``` ...`description`과 `tax`는 (기본 값이 `None`으로 되어 있어) 선택적이기 때문에, 이 JSON "`object`"는 다음과 같은 상황에서도 유효합니다: ```JSON { "name": "Foo", "price": 45.2 } ``` ## 매개변수로서 선언하기 여러분의 *경로 작동*에 추가하기 위해, 경로 매개변수 그리고 쿼리 매개변수에서 선언했던 것과 같은 방식으로 선언하면 됩니다.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 7.8K bytes - Viewed (0) -
docs/de/docs/advanced/generate-clients.md
<img src="/img/tutorial/generate-clients/image03.png"> /// tip | Tipp Beachten Sie die automatische Vervollständigung für `name` und `price`, die in der FastAPI-Anwendung im `Item`-Modell definiert wurden. /// Sie erhalten Inline-Fehlerberichte für die von Ihnen gesendeten Daten: <img src="/img/tutorial/generate-clients/image04.png">
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 11.7K bytes - Viewed (0) -
docs/pt/docs/advanced/generate-clients.md
Você também obterá preenchimento automático para o corpo a ser enviado: <img src="/img/tutorial/generate-clients/image03.png"> /// tip | Dica Observe o preenchimento automático para `name` e `price`, que foi definido na aplicação FastAPI, no modelo `Item`. /// Você terá erros em linha para os dados que você envia: <img src="/img/tutorial/generate-clients/image04.png">
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 10.9K 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/uk/docs/tutorial/body-updates.md
### Попередження про заміну Це означає, що якщо Ви хочете оновити елемент `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: Mon Jun 30 06:00:04 UTC 2025 - 7.7K bytes - Viewed (0) -
docs/tr/docs/index.md
```Python hl_lines="4 9-12 25-27" from typing import Union from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float is_offer: Union[bool, None] = None @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 21.9K bytes - Viewed (0) -
docs/es/docs/advanced/generate-clients.md
También obtendrás autocompletado para el payload a enviar: <img src="/img/tutorial/generate-clients/image03.png"> /// tip | Consejo Nota el autocompletado para `name` y `price`, que fue definido en la aplicación de FastAPI, en el modelo `Item`. /// Tendrás errores en línea para los datos que envíes: <img src="/img/tutorial/generate-clients/image04.png">
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 10.8K bytes - Viewed (0) -
docs/zh/docs/advanced/generate-clients.md
现在您可以导入并使用客户端代码,它可能看起来像这样,请注意,您可以为这些方法使用自动补全: <img src="/img/tutorial/generate-clients/image02.png"> 您还将自动补全要发送的数据: <img src="/img/tutorial/generate-clients/image03.png"> /// tip 请注意, `name` 和 `price` 的自动补全,是通过其在`Item`模型(FastAPI)中的定义实现的。 /// 如果发送的数据字段不符,你也会看到编辑器的错误提示: <img src="/img/tutorial/generate-clients/image04.png"> 响应(response)对象也拥有自动补全:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 8.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-updates.md
{* ../../docs_src/body_updates/tutorial001.py hl[30:35] *} `PUT` 用于接收替换现有数据的数据。 ### 关于更新数据的警告 用 `PUT` 把数据项 `bar` 更新为以下内容时: ```Python { "name": "Barz", "price": 3, "description": None, } ``` 因为上述数据未包含已存储的属性 `"tax": 20.2`,新的输入模型会把 `"tax": 10.5` 作为默认值。 因此,本次操作把 `tax` 的值「更新」为 `10.5`。 ## 用 `PATCH` 进行部分更新Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 3.5K bytes - Viewed (0)