mirror of
https://github.com/fastapi/fastapi.git
synced 2026-05-18 21:39:22 -04:00
✨ Add support for function return type annotations to declare the response_model (#1436)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
@@ -9,6 +9,7 @@ app = FastAPI()
|
||||
@app.delete(
|
||||
"/{id}",
|
||||
status_code=204,
|
||||
response_model=None,
|
||||
)
|
||||
async def delete_deployment(
|
||||
id: int,
|
||||
|
||||
Reference in New Issue
Block a user