Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 40 for update_item (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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)
  2. 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)
  3. docs_src/body/tutorial004_py310.py

    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    app = FastAPI()
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item, q: str | None = None):
        result = {"item_id": item_id, **item.model_dump()}
        if q:
            result.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 414 bytes
    - Click Count (0)
  4. docs_src/body_nested_models/tutorial005_py310.py

        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: set[str] = set()
        image: Image | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 468 bytes
    - Click Count (0)
  5. fastapi/routing.py

            class Item(BaseModel):
                name: str
                description: str | None = None
    
            app = FastAPI()
            router = APIRouter()
    
            @router.patch("/items/")
            def update_item(item: Item):
                return {"message": "Item updated in place"}
    
            app.include_router(router)
            ```
            """
            return self.api_route(
                path=path,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
  6. 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)
  7. 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)
  8. src/main/java/org/codelibs/fess/suggest/index/operations/DeletionOperations.java

                        updateItems.add(item);
                    }
                    final SuggestWriterResult result =
                            suggestWriter.write(client, settings, index, updateItems.toArray(new SuggestItem[updateItems.size()]), false);
                    if (result.hasFailure()) {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

            // Update the item
            protwordsFile.update(item);
    
            // Verify the update
            protwordsFile.reload(null);
            ProtwordsItem updatedItem = protwordsFile.get(1).get();
            assertEquals("updatedWord", updatedItem.getInput());
        }
    
        @Test
        public void test_delete() {
            // Load data first
            protwordsFile.reload(null);
    
            // Get an existing item
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 21.2K bytes
    - Click Count (0)
  10. docs/en/docs/release-notes.md

    * 📝 Update code examples in docs for body, replace name `create_item` with `update_item` when appropriate. PR [#5913](https://github.com/tiangolo/fastapi/pull/5913) by [@OttoAndrey](https://github.com/OttoAndrey).
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Apr 03 12:07:04 GMT 2026
    - 631K bytes
    - Click Count (0)
Back to Top