- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 75 for patrice (0.17 sec)
-
docs/it/docs/index.md
```Python return {"item_name": item.name, "item_id": item_id} ``` ...da: ```Python ... "item_name": item.name ... ``` ...a: ```Python ... "item_price": item.price ... ``` ...e osserva come il tuo editor di testo autocompleterà gli attributi e sarà in grado di riconoscere i loro tipi: ![editor support](https://fastapi.tiangolo.com/img/vscode-completion.png)
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 23:58:47 GMT 2024 - 19.3K bytes - Viewed (0) -
tests/test_tutorial/test_body/test_tutorial001_py310.py
response = client.post("/items/", json={"name": "Foo", "price": 50.5}) assert response.status_code == 200 assert response.json() == { "name": "Foo", "price": 50.5, "description": None, "tax": None, } @needs_py310 def test_post_with_str_float(client: TestClient): response = client.post("/items/", json={"name": "Foo", "price": "50.5"}) assert response.status_code == 200
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 15K bytes - Viewed (2) -
tests/test_tutorial/test_body/test_tutorial001.py
response = client.post("/items/", json={"name": "Foo", "price": 50.5}) assert response.status_code == 200 assert response.json() == { "name": "Foo", "price": 50.5, "description": None, "tax": None, } def test_post_with_str_float(client: TestClient): response = client.post("/items/", json={"name": "Foo", "price": "50.5"}) assert response.status_code == 200
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 14.7K bytes - Viewed (7) -
docs/pl/docs/index.md
```Python return {"item_name": item.name, "item_id": item_id} ``` ...z: ```Python ... "item_name": item.name ... ``` ...na: ```Python ... "item_price": item.price ... ``` ...i zobacz jak edytor kodu automatycznie uzupełni atrybuty i będzie znał ich typy: ![editor support](https://fastapi.tiangolo.com/img/vscode-completion.png)
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 29 05:18:04 GMT 2024 - 19.4K bytes - Viewed (0) -
docs/ru/docs/index.md
```Python return {"item_name": item.name, "item_id": item_id} ``` ...из: ```Python ... "item_name": item.name ... ``` ...в: ```Python ... "item_price": item.price ... ``` ... и посмотрите, как ваш редактор будет автоматически заполнять атрибуты и узнавать их типы: ![editor support](https://fastapi.tiangolo.com/img/vscode-completion.png)
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 29 05:18:04 GMT 2024 - 25.8K 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 } ``` ## 매개변수로서 선언하기 여러분의 *경로 작동*에 추가하기 위해, 경로 매개변수 그리고 쿼리 매개변수에서 선언했던 것과 같은 방식으로 선언하면 됩니다.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.7K bytes - Viewed (0) -
docs/zh/docs/index.md
```Python return {"item_name": item.name, "item_id": item_id} ``` ......从: ```Python ... "item_name": item.name ... ``` ......改为: ```Python ... "item_price": item.price ... ``` ......注意观察编辑器是如何自动补全属性并且还知道它们的类型: ![editor support](https://fastapi.tiangolo.com/img/vscode-completion.png) <a href="https://fastapi.tiangolo.com/zh/tutorial/">教程 - 用户指南</a> 中有包含更多特性的更完整示例。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 29 05:18:04 GMT 2024 - 18.2K bytes - Viewed (0) -
docs/en/docs/advanced/generate-clients.md
You will also get autocompletion for the payload to send: <img src="/img/tutorial/generate-clients/image03.png"> !!! tip Notice the autocompletion for `name` and `price`, that was defined in the FastAPI application, in the `Item` model. You will have inline errors for the data that you send: <img src="/img/tutorial/generate-clients/image04.png">
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 10.5K bytes - Viewed (0) -
docs/en/docs/tutorial/response-model.md
"description": "The bartenders", "price": 62, "tax": 20.2 } ``` they will be included in the response. #### Data with the same values as the defaults If the data has the same values as the default ones, like the item with ID `baz`: ```Python hl_lines="3 5-6" { "name": "Baz", "description": None, "price": 50.2, "tax": 10.5, "tags": [] } ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17.9K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-updates.md
```Python hl_lines="30-35" {!../../../docs_src/body_updates/tutorial001.py!} ``` `PUT` 用于接收替换现有数据的数据。 ### 关于更新数据的警告 用 `PUT` 把数据项 `bar` 更新为以下内容时: ```Python { "name": "Barz", "price": 3, "description": None, } ``` 因为上述数据未包含已存储的属性 `"tax": 20.2`,新的输入模型会把 `"tax": 10.5` 作为默认值。 因此,本次操作把 `tax` 的值「更新」为 `10.5`。 ## 用 `PATCH` 进行部分更新
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 3.6K bytes - Viewed (0)