FastAPI मा, एक path operation एक route हो — एक HTTP method decorator (@app.get, @app.post, आदि) को साथ सजिएको function जसले path मा requests को सम्भाल गर्छ। Function को return value स्वचालित रूपमा JSON मा serialize हुन्छ।
प्रत्येक HTTP method को लागि routes परिभाषित गर्दै
fastapi FastAPI
app = FastAPI()
():
[{: }, {: }]
():
{: item_id}
():
item
():
{: item_id}
