- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for create_author_items (0.18 sec)
-
docs_src/dataclasses/tutorial003.py
@dataclass class Author: name: str items: List[Item] = field(default_factory=list) # (3) app = FastAPI() @app.post("/authors/{author_id}/items/", response_model=Author) # (4) async def create_author_items(author_id: str, items: List[Item]): # (5) return {"name": author_id, "items": items} # (6) @app.get("/authors/", response_model=List[Author]) # (7) def get_authors(): # (8) return [ # (9)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 1.4K bytes - Viewed (0) -
tests/test_tutorial/test_dataclasses/test_tutorial003.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Sep 28 04:14:40 GMT 2023 - 12.1K bytes - Viewed (0)