mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-07 02:56:41 +00:00
8 lines
167 B
Python
8 lines
167 B
Python
from fastapi import FastAPI
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get("/items/", operation_id="some_specific_id_you_define")
|
|
async def read_items():
|
|
return [{"item_id": "Foo"}]
|