- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for item_id (0.17 sec)
-
docs_src/query_params/tutorial006.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 301 bytes - Viewed (0) -
docs_src/response_model/tutorial006.py
}, } @app.get( "/items/{item_id}/name", response_model=Item, response_model_include=["name", "description"], ) async def read_item_name(item_id: str): return items[item_id] @app.get("/items/{item_id}/public", response_model=Item, response_model_exclude=["tax"]) async def read_item_public_data(item_id: str):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 848 bytes - Viewed (0) -
docs_src/handling_errors/tutorial006.py
return await request_validation_exception_handler(request, exc) @app.get("/items/{item_id}") async def read_item(item_id: int): if item_id == 3: raise HTTPException(status_code=418, detail="Nope! I don't like 3.")
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Aug 09 11:10:33 GMT 2020 - 928 bytes - Viewed (0) -
docs_src/body_nested_models/tutorial006.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 530 bytes - Viewed (0) -
docs_src/path_operation_configuration/tutorial006.py
@app.get("/users/", tags=["users"]) async def read_users(): return [{"username": "johndoe"}] @app.get("/elements/", tags=["items"], deprecated=True) async def read_elements():
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 365 bytes - Viewed (0) -
docs_src/path_params_numeric_validations/tutorial006.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 10 18:49:18 GMT 2023 - 345 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial006.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 254 bytes - Viewed (0)