- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for delete_item (0.09 seconds)
-
tests/test_extra_routes.py
def get_not_decorated(item_id: str): return {"item_id": item_id} app.add_api_route("/items-not-decorated/{item_id}", get_not_decorated) @app.delete("/items/{item_id}") def delete_item(item_id: str, item: Item): return {"item_id": item_id, "item": item} @app.head("/items/{item_id}") def head_item(item_id: str): return JSONResponse(None, headers={"x-fastapi-item-id": item_id})
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 14.7K 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) -
docs/en/docs/release-notes.md
... @app.get("/items/{item_id}") def read_item(*, user: User = Depends(get_current_user), item_id: int): ... @app.delete("/items/{item_id}") def delete_item(*, user: User = Depends(get_current_user), item_id: int): ... ``` There's a bit of code duplication for the dependency: ```Python user: User = Depends(get_current_user) ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Apr 03 12:07:04 GMT 2026 - 631K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java
loadTestData(); StopwordsItem originalItem = stopwordsFile.get(1).get(); StopwordsItem deleteItem = new StopwordsItem(1, "the"); deleteItem.setNewInput(""); StopwordsFile.StopwordsUpdater updater = stopwordsFile.new StopwordsUpdater(deleteItem); StopwordsItem result = updater.write(originalItem); assertNull(result); updater.close(); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 18K bytes - Click Count (0)