- Sort Score
- Result 10 results
- Languages All
Results 601 - 610 of 1,042 for fo2o (0.03 sec)
-
tests/test_tutorial/test_additional_status_codes/test_tutorial001_an.py
from fastapi.testclient import TestClient from docs_src.additional_status_codes.tutorial001_an import app client = TestClient(app) def test_update(): response = client.put("/items/foo", json={"name": "Wrestlers"}) assert response.status_code == 200, response.text assert response.json() == {"name": "Wrestlers", "size": None} def test_create(): response = client.put("/items/red", json={"name": "Chillies"})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 549 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial008_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 24 20:26:06 UTC 2023 - 511 bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
return true; // BAD!! } @Override public String get() { return "foo"; // BAD!! } @Override public String get(long time, TimeUnit unit) { return "foo"; // BAD!! } @Override public void addListener(Runnable runnable, Executor executor) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 6.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
return true; // BAD!! } @Override public String get() { return "foo"; // BAD!! } @Override public String get(long time, TimeUnit unit) { return "foo"; // BAD!! } @Override public void addListener(Runnable runnable, Executor executor) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 6.1K bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial003_an_py310.py
@app.put("/items/{item_id}") async def update_item( item_id: int, item: Annotated[ Item, Body( examples=[ { "name": "Foo", "description": "A very nice Item", "price": 35.4, "tax": 3.2, } ], ), ], ):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 673 bytes - Viewed (0) -
docs/zh/docs/tutorial/body-nested-models.md
``` //// 这意味着 **FastAPI** 将期望类似于以下内容的请求体: ```JSON { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2, "tags": ["rock", "metal", "bar"], "image": { "url": "http://example.com/baz.jpg", "name": "The Foo live" } } ``` 再一次,仅仅进行这样的声明,你将通过 **FastAPI** 获得: * 对被嵌入的模型也适用的编辑器支持(自动补全等) * 数据转换
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.2K bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial001_py310_pv1.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 631 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial008_an.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 24 20:26:06 UTC 2023 - 540 bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial003.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 612 bytes - Viewed (0) -
docs/zh/docs/tutorial/query-params-str-validations.md
{!../../docs_src/query_params_str_validations/tutorial011.py!} ``` 然后,输入如下网址: ``` http://localhost:8000/items/?q=foo&q=bar ``` 你会在*路径操作函数*的*函数参数* `q` 中以一个 Python `list` 的形式接收到*查询参数* `q` 的多个值(`foo` 和 `bar`)。 因此,该 URL 的响应将会是: ```JSON { "q": [ "foo", "bar" ] } ``` /// tip 要声明类型为 `list` 的查询参数,如上例所示,你需要显式地使用 `Query`,否则该参数将被解释为请求体。 ///
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.2K bytes - Viewed (0)