FastAPI లో, path operation ఒక route — HTTP method decorator (@app.get, @app.post, మొదలైనవి) తో అలంకరించిన ఒక ఫంక్షన్, ఇది ఒక మార్గానికి అభ్యర్థనలను నిర్వహిస్తుంది. ఫంక్షన్ యొక్క రిటర్న్ విలువ స్వయంచాలకంగా JSON కు క్రమబద్ధీకరించబడుతుంది.
ప్రతి HTTP పద్ధతి కోసం routes నిర్వచించడం
fastapi FastAPI
app = FastAPI()
():
[{: }, {: }]
():
{: item_id}
():
item
():
{: item_id}
