- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 445 for item_1 (0.04 seconds)
-
docs/en/docs/tutorial/bigger-applications.md
/// ## Another module with `APIRouter` { #another-module-with-apirouter } Let's say you also have the endpoints dedicated to handling "items" from your application in the module at `app/routers/items.py`. You have *path operations* for: * `/items/` * `/items/{item_id}` It's all the same structure as with `app/routers/users.py`. But we want to be smarter and simplify the code a bit.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 07 09:29:03 GMT 2026 - 19.2K bytes - Click Count (0) -
docs/ru/docs/python-types.md
/// Это означает: «переменная `items` — это `list`, и каждый элемент этого списка — `str`». Таким образом, ваш редактор кода сможет помогать даже при обработке элементов списка: <img src="/img/python-types/image05.png"> Без типов добиться этого почти невозможно. Обратите внимание, что переменная `item` — один из элементов списка `items`.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 17.7K bytes - Click Count (0) -
docs_src/query_params/tutorial002_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 219 bytes - Click Count (0) -
tests/test_put_no_body.py
from inline_snapshot import snapshot app = FastAPI() @app.put("/items/{item_id}") def save_item_no_body(item_id: str): return {"item_id": item_id} client = TestClient(app) def test_put_no_body(): response = client.put("/items/foo") assert response.status_code == 200, response.text assert response.json() == {"item_id": "foo"} def test_put_no_body_with_body():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 3.8K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/bigger-applications.md
/// ## 另一個帶有 `APIRouter` 的模組 { #another-module-with-apirouter } 假設你還有一個模組 `app/routers/items.py`,專門處理應用程式中的「items」。 你有以下路徑操作: * `/items/` * `/items/{item_id}` 其結構與 `app/routers/users.py` 相同。 但我們想要更聰明地簡化一些程式碼。 我們知道這個模組中的所有路徑操作都有相同的: * 路徑 `prefix`:`/items` * `tags`:(只有一個標籤:`items`) * 額外的 `responses` * `dependencies`:它們都需要我們先前建立的 `X-Token` 相依性Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 18.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java
assertEquals(2, result.size()); CharMappingItem item1 = result.get(0); assertArrayEquals(new String[] { "α", "β" }, item1.getInputs()); assertEquals("γ", item1.getOutput()); CharMappingItem item2 = result.get(1); assertArrayEquals(new String[] { "中", "文" }, item2.getInputs()); assertEquals("字", item2.getOutput()); } // Test with very long input line
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 18.9K bytes - Click Count (0) -
docs_src/additional_status_codes/tutorial001_an_py310.py
app = FastAPI() items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}} @app.put("/items/{item_id}") async def upsert_item( item_id: str, name: Annotated[str | None, Body()] = None, size: Annotated[int | None, Body()] = None, ): if item_id in items: item = items[item_id] item["name"] = name item["size"] = size
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 686 bytes - Click Count (0) -
docs/bucket/replication/setup_2site_existing_replication.sh
chmod +x mc fi minio server --address 127.0.0.1:9001 "http://127.0.0.1:9001/tmp/multisitea/data/disterasure/xl{1...4}" \ "http://127.0.0.1:9002/tmp/multisitea/data/disterasure/xl{5...8}" >/tmp/sitea_1.log 2>&1 & minio server --address 127.0.0.1:9002 "http://127.0.0.1:9001/tmp/multisitea/data/disterasure/xl{1...4}" \ "http://127.0.0.1:9002/tmp/multisitea/data/disterasure/xl{5...8}" >/tmp/sitea_2.log 2>&1 &Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Sep 06 09:42:21 GMT 2024 - 5.6K bytes - Click Count (0) -
docs_src/path_params/tutorial002_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 143 bytes - Click Count (0) -
docs_src/query_params/tutorial005_py310.py
from fastapi import FastAPI app = FastAPI() @app.get("/items/{item_id}") async def read_user_item(item_id: str, needy: str): item = {"item_id": item_id, "needy": needy}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 192 bytes - Click Count (0)