# Your First FastAPI Route

FastAPI turns Python functions into a web API, where a decorator ties each function to an address, a path parameter with a type hint reads part of the address, HTTPException answers 404, fastapi dev runs the app, and /docs lets you try every route.

![Cheat sheet: Your First FastAPI Route](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/cf18340174304d4fbf0df7108bb4464c.webp)

- Category: Python
- Level: Apprentice
- Tags: back-end, Decorator, fastapi, fastapi dev, HTTPException, Path Parameter (fastapi), python
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/python-taste-fastapi-first-route-cheat-sheet
