- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,700 for item (0.18 sec)
-
docs_src/templates/templates/item.html
HTML - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Thu Jan 11 22:25:37 GMT 2024 - 235 bytes - Viewed (0) -
docs_src/bigger_applications/app_an_py39/routers/items.py
return {"name": fake_items_db[item_id]["name"], "item_id": item_id} @router.put( "/{item_id}", tags=["custom"], responses={403: {"description": "Operation forbidden"}}, ) async def update_item(item_id: str): if item_id != "plumbus": raise HTTPException( status_code=403, detail="You can only update the item: plumbus" )
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 1011 bytes - Viewed (0) -
docs_src/bigger_applications/app/routers/items.py
return {"name": fake_items_db[item_id]["name"], "item_id": item_id} @router.put( "/{item_id}", tags=["custom"], responses={403: {"description": "Operation forbidden"}}, ) async def update_item(item_id: str): if item_id != "plumbus": raise HTTPException( status_code=403, detail="You can only update the item: plumbus" )
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Sun Nov 29 17:32:18 GMT 2020 - 1011 bytes - Viewed (0) -
docs_src/bigger_applications/app_an/routers/items.py
return {"name": fake_items_db[item_id]["name"], "item_id": item_id} @router.put( "/{item_id}", tags=["custom"], responses={403: {"description": "Operation forbidden"}}, ) async def update_item(item_id: str): if item_id != "plumbus": raise HTTPException( status_code=403, detail="You can only update the item: plumbus" )
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 1011 bytes - Viewed (0) -
tests/test_dependency_duplicates.py
return [item, item2] @app.post("/no-duplicates") async def no_duplicates(item: Item, item2: Item = Depends(dependency)): return [item, item2] @app.post("/with-duplicates-sub") async def no_duplicates_sub( item: Item, sub_items: List[Item] = Depends(sub_duplicate_dependency) ): return [item, sub_items] def test_no_duplicates_invalid():
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 8.5K bytes - Viewed (0) -
docs_src/extra_models/tutorial003_py310.py
size: int items = { "item1": {"description": "All my friends drive a low rider", "type": "car"}, "item2": { "description": "Music is my aeroplane, it's my aeroplane", "type": "plane", "size": 5, }, } @app.get("/items/{item_id}", response_model=Union[PlaneItem, CarItem]) async def read_item(item_id: str):
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 644 bytes - Viewed (0) -
tests/test_tutorial/test_extra_models/test_tutorial003.py
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Aug 04 20:47:07 GMT 2023 - 5.1K bytes - Viewed (0) -
tests/test_generate_unique_id_function.py
@app.post("/", response_model=List[Item], responses={404: {"model": List[Message]}}) def post_root(item1: Item, item2: Item): return item1, item2 # pragma: nocover @router.post( "/router", response_model=List[Item], responses={404: {"model": List[Message]}} ) def post_router(item1: Item, item2: Item): return item1, item2 # pragma: nocover app.include_router(router)
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Sat Jan 13 15:10:26 GMT 2024 - 66.7K bytes - Viewed (0) -
tests/test_extra_routes.py
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}) @app.options("/items/{item_id}") def options_item(item_id: str): return JSONResponse(None, headers={"x-fastapi-item-id": item_id}) @app.patch("/items/{item_id}") def patch_item(item_id: str, item: Item):
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 13.7K bytes - Viewed (0) -
docs_src/body_updates/tutorial002_py39.py
} @app.get("/items/{item_id}", response_model=Item) async def read_item(item_id: str): return items[item_id] @app.patch("/items/{item_id}", response_model=Item) async def update_item(item_id: str, item: Item): stored_item_data = items[item_id] stored_item_model = Item(**stored_item_data) update_data = item.dict(exclude_unset=True) updated_item = stored_item_model.copy(update=update_data)
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 1K bytes - Viewed (0)