Skip to content

Glossary: Building APIs with FastAPI

Decorator

Also written: decorators

A line starting with `@` above a function that changes how it is used. `@app.get("/")` registers the function as the handler for GET requests to `/`.

Where the book teaches it

Related terms

Endpoint