- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 351 for Items (0.02 sec)
-
docs/em/docs/tutorial/bigger-applications.md
/// ## โ1๏ธโฃ ๐น โฎ๏ธ `APIRouter` โก๏ธ ๐ฌ ๐ โ๏ธ ๐ ๐ก ๐ "๐ฌ" โช๏ธโก๏ธ ๐ ๐ธ ๐น `app/routers/items.py`. ๐ โ๏ธ *โก ๐ ๏ธ* : * `/items/` * `/items/{item_id}` โซ๏ธ ๐ ๐ ๐ โฎ๏ธ `app/routers/users.py`. โ๏ธ ๐ฅ ๐ ๐ & ๐ ๐ ๐. ๐ฅ ๐ญ ๐ *โก ๐ ๏ธ* ๐ ๐น โ๏ธ ๐: * โก `prefix`: `/items`. * `tags`: (1๏ธโฃ ๐: `items`). * โ `responses`. * `dependencies`: ๐ซ ๐ ๐ช ๐ `X-Token` ๐ ๐ฅ โ.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.5K bytes - Viewed (0) -
tests/test_openapi_separate_input_output_schemas.py
app = FastAPI(separate_input_output_schemas=separate_input_output_schemas) @app.post("/items/", responses={402: {"model": Item}}) def create_item(item: Item) -> Item: return item @app.post("/items-list/") def create_item_list(item: List[Item]): return item @app.get("/items/") def read_items() -> List[Item]: return [ Item(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:44:57 UTC 2024 - 19.7K bytes - Viewed (0) -
docs/en/docs/tutorial/bigger-applications.md
* look for the subpackage `routers` (the directory at `app/routers/`)... * and from it, import the submodule `items` (the file at `app/routers/items.py`) and `users` (the file at `app/routers/users.py`)... The module `items` will have a variable `router` (`items.router`). This is the same one we created in the file `app/routers/items.py`, it's an `APIRouter` object. And then we do the same for the module `users`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 18.4K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
*/ private E extract() { final E[] items = this.items; E x = items[takeIndex]; items[takeIndex] = null; takeIndex = inc(takeIndex); --count; return x; } /** * Utility for remove and iterator.remove: Delete item at position i. Call only when occupying * monitor. */ void removeAt(int i) { final E[] items = this.items; // if removing front item, just advance
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 22.5K bytes - Viewed (0) -
tests/test_tuples.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 11.8K bytes - Viewed (0) -
tests/test_tutorial/test_body/test_tutorial001.py
def test_body_float(client: TestClient): 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"})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 14.7K 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"})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 15K bytes - Viewed (1) -
tests/test_tutorial/test_body_updates/test_tutorial001_py39.py
def test_get(client: TestClient): response = client.get("/items/baz") assert response.status_code == 200, response.text assert response.json() == { "name": "Baz", "description": None, "price": 50.2, "tax": 10.5, "tags": [], } @needs_py39 def test_put(client: TestClient): response = client.put( "/items/bar", json={"name": "Barz", "price": 3, "description": None}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Sep 28 04:14:40 UTC 2023 - 11.8K bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main_an.py
}, }, }, } }, "/items/": { "get": { "tags": ["items"], "summary": "Read Items", "operationId": "read_items_items__get", "parameters": [ {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 24.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/bigger-applications.md
/// ## ๅ ถไปไฝฟ็จ `APIRouter` ็ๆจกๅ ๅ่ฎพไฝ ๅจไฝไบ `app/routers/items.py` ็ๆจกๅไธญ่ฟๆไธ้จ็จไบๅค็ๅบ็จ็จๅบไธญใ้กน็ฎใ็็ซฏ็นใ ไฝ ๅ ทๆไปฅไธ*่ทฏๅพๆไฝ*๏ผ * `/items/` * `/items/{item_id}` ่ฟๅ `app/routers/users.py` ็็ปๆๅฎๅ จ็ธๅใ ไฝๆฏๆไปฌๆณๅๅพๆด่ชๆๅนถ็ฎๅไธไบไปฃ็ ใ ๆไปฌ็ฅ้ๆญคๆจกๅไธญ็ๆๆ*่ทฏๅพๆไฝ*้ฝๆ็ธๅ็๏ผ * ่ทฏๅพ `prefix`๏ผ`/items`ใ * `tags`๏ผ๏ผไป ๆไธไธช `items` ๆ ็ญพ๏ผใ * ้ขๅค็ `responses`ใ * `dependencies`๏ผๅฎไปฌ้ฝ้่ฆๆไปฌๅๅปบ็ `X-Token` ไพ่ต้กนใ
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 18.4K bytes - Viewed (0)