mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-08 11:36:40 +00:00
10 lines
160 B
Python
10 lines
160 B
Python
from fastapi import FastAPI
|
|
|
|
app = FastAPI(
|
|
openapi_url="/api/v1/openapi.json"
|
|
)
|
|
|
|
|
|
@app.get("/items/")
|
|
async def read_items():
|
|
return [{"name": "Foo"}]
|