9 lines
154 B
Python
9 lines
154 B
Python
|
from fastapi import FastAPI
|
||
|
|
||
|
app = FastAPI(openapi_url="/api/v1/openapi.json")
|
||
|
|
||
|
|
||
|
@app.get("/items/")
|
||
|
async def read_items():
|
||
|
return [{"name": "Foo"}]
|