- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for create_item_list (0.2 sec)
-
tests/test_openapi_separate_input_output_schemas.py
app = FastAPI(separate_input_output_schemas=separate_input_output_schemas) @app.post("/items/") def create_item(item: Item): return item @app.post("/items-list/") def create_item_list(item: List[Item]): return item @app.get("/items/") def read_items() -> List[Item]: return [ Item( name="Portal Gun",
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Sep 28 04:14:40 GMT 2023 - 18.4K bytes - Viewed (2)