FastAPI · Decorator
@app.get
Configure FastAPI path operations with tags, summaries, descriptions, response descriptions, and deprecation metadata. FastAPI exposes these values in OpenAPI and its interactive documentation.
Last updated
Syntax
@app.get("/path", tags=["group"], summary="Short title", description="Details", response_description="Returned data", deprecated=True)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
TagsTags with EnumsSummary and descriptionDescription from docstringDeprecate a path operationOpenAPI schemaautomatic documentation interfaces