- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for read_items (0.26 sec)
-
docs/en/docs/tutorial/dependencies/index.md
* Get the result from your function. * Assign that result to the parameter in your *path operation function*. ```mermaid graph TB common_parameters(["common_parameters"]) read_items["/items/"] read_users["/users/"] common_parameters --> read_items common_parameters --> read_users ``` This way you write shared code once and **FastAPI** takes care of calling it for your *path operations*. /// check
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Oct 28 11:18:17 UTC 2024 - 9.2K bytes - Viewed (0) -
fastapi/param_functions.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 23 18:30:18 UTC 2024 - 62.5K bytes - Viewed (0) -
docs/en/docs/release-notes.md
# authenticate user return User() @app.get("/items/") def read_items(user: User = Depends(get_current_user)): ... @app.post("/items/") def create_item(*, user: User = Depends(get_current_user), item: Item): ... @app.get("/items/{item_id}") def read_item(*, user: User = Depends(get_current_user), item_id: int): ...
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Nov 01 11:25:57 UTC 2024 - 460.3K bytes - Viewed (0) -
README.md
```Python from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} ``` <details markdown="1"> <summary>Or use <code>async def</code>...</summary>
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Oct 31 09:13:26 UTC 2024 - 23.6K bytes - Viewed (0)