Tags

noun

say it: “TAGZ” /ˈtæɡz/

Labels on FastAPI routes, such as tags=["games"], that group them under headings in the interactive docs.

What is Tags?

Tags group endpoints under headings in the interactive docs.

@app.get('/recipes', tags=['recipes'])

In a sentence

  • “With tags, the docs show the games routes under one heading and the players routes under another.”
  • “The router's tags were set once, so every games route got them.”

Level: Journeyman · More FastAPI terms at this level

Updated