- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 53 for update_item (0.11 seconds)
-
docs/ja/docs/index.md
return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: str | None = None): return {"item_id": item_id, "q": q} @app.put("/items/{item_id}") def update_item(item_id: int, item: Item): return {"item_name": item.name, "item_id": item_id} ``` `fastapi dev` サーバーは自動でリロードされるはずです。 ### 自動対話型 API ドキュメントのアップグレード { #interactive-api-docs-upgrade }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 25.6K bytes - Click Count (0) -
docs_src/encoder/tutorial001_py310.py
from pydantic import BaseModel fake_db = {} class Item(BaseModel): title: str timestamp: datetime description: str | None = None app = FastAPI() @app.put("/items/{id}") def update_item(id: str, item: Item): json_compatible_item_data = jsonable_encoder(item)Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 430 bytes - Click Count (0) -
docs/zh-hant/docs/index.md
return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: str | None = None): return {"item_id": item_id, "q": q} @app.put("/items/{item_id}") def update_item(item_id: int, item: Item): return {"item_name": item.name, "item_id": item_id} ``` `fastapi dev` 伺服器應會自動重新載入。 ### 互動式 API 文件升級 { #interactive-api-docs-upgrade }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 20.8K bytes - Click Count (0) -
docs_src/body/tutorial004_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 414 bytes - Click Count (0) -
docs_src/body_nested_models/tutorial005_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 468 bytes - Click Count (0) -
fastapi/routing.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 193K bytes - Click Count (0) -
fastapi/applications.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Apr 01 16:16:24 GMT 2026 - 178.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java
CharMappingItem updateItem1 = item1.get(); updateItem1.setNewInputs(new String[] { "m", "n" }); updateItem1.setNewOutput("o"); // Create another update for the same item CharMappingItem updateItem2 = new CharMappingItem(1L, new String[] { "x", "y" }, "z"); updateItem2.setNewInputs(new String[] { "p", "q" }); updateItem2.setNewOutput("r");
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) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java
loadTestData(); StopwordsItem originalItem = stopwordsFile.get(1).get(); StopwordsItem updateItem = new StopwordsItem(1, "the"); updateItem.setNewInput("modified"); StopwordsFile.StopwordsUpdater updater = stopwordsFile.new StopwordsUpdater(updateItem); StopwordsItem result = updater.write(originalItem); assertNotNull(result);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 18K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/index/writer/SuggestIndexWriterTest.java
assertNotNull(result1); assertFalse(result1.hasFailure()); runner.refresh(); // Second write with update SuggestItem updatedItem = new SuggestItem(new String[] { "テスト" }, readings, new String[] { "content" }, 2, 0, -1, new String[] { "tag2" }, new String[] { SuggestConstants.DEFAULT_ROLE }, null, SuggestItem.Kind.DOCUMENT);
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sat Mar 14 02:35:38 GMT 2026 - 18.3K bytes - Click Count (0)