mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-27 12:19:55 -04:00
✨ Add support for extensions and updates to the OpenAPI schema in path operations (#1922)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
1 parent
7db359182d
commit
836bb97a2d
13 files changed
+487
-1
No files matched your search
@@ -0,0 +1,8 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@app.get("/items/", openapi_extra={"x-aperture-labs-portal": "blue"})
|
||||
async def read_items():
|
||||
return [{"item_id": "portal-gun"}]
|
||||
Reference in new issue
Block a user