Features
Link : https://www.youtube.com/watch?v=H9Blu0kWdZE&list=PLK8U0kF0E_D6l19LhOGWhVZ3sQ6ujJKq_ 1. Automatic docs : Fast API provides a swagger UI which shows what are the routes we have created and what are the -- Swagger UI -- ReDoc Fast API : https://fastapi.tiangolo.com/ Core FastAPI Terminologies 1. App Instance from fastapi import FastAPI app = FastAPI() This is your main application object. Everything (routes, configs) is attached to this. 2. Path Operation (Route) @app.get("/users") A path = URL ( /users ) An operation = HTTP method ( GET , POST , etc.) Together: Path Operation 👉 Meaning: “When a GET request comes to /users , run this function.” 3. HTTP Methods GET → Read data POST → Create data PUT → Update (full) PATCH → Update (partial) DELETE → Remove 4. Path Parameters @app.get("/users/{user_id}") def get_user(user_id: int): Dynamic values in the URL Example: /users/...