Skip to content
masterclass Buddy

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.

Subscribe
  • Tags
  • Tags with Enums
  • Summary and description
  • Description from docstring
  • Deprecate a path operation
  • OpenAPI schema
  • automatic documentation interfaces

Source: Path Operation Configuration - FastAPI. Checked 2026-11-03.