Please enable JavaScript.
Coggle requires JavaScript to display documents.
FastAPI, https://fastapi.tiangolo.com/tutorial/first-steps/, https://www…
FastAPI
basics
-
create path operation
-
-
-
path operation status code
e.g. @app.post("/items/", status_code=201)
e.g.
from fastapi import status
@app.post("/items/", status_code=status.HTTP_201_CREATED)
-
-
-
-
-
-
-
-
-
response model
types
-
pidantyc_model
e.g.
@app.post("/items", response_model=Item)
async def create_item(item:Item) -> Any:
....return item
-
-
-
-
-
-
-
-