
Discover FastAPI, a modern, high-performance Python web framework for building APIs with type hints, offering automatic validation with Pydantic, dependency injection, and interactive documentation via Swagger UI and Redoc.
Prepare for this api course by reviewing python concepts, variables, and data types. Study functions with parameters and returns, modules, exceptions, if and else statements, loops, and command line html.
Develop foundational database skills by exploring tables, primary keys, and foreign keys, and practice SQL statements such as insert, update, and delete.
Confirm prerequisites and install Python 3.7 or later before continuing. This fast api course is not a Python course and assumes basic Python, web development, and database concepts.
Isolate project dependencies with Python virtual environments to prevent conflicts, keep environments independent of the system Python, and enable consistent, repeatable setups across machines.
Create and manage Python virtual environments on Windows using the command prompt, activate different environments (pa and pb), install packages with pip, and verify with pip list.
Set up and activate a Python virtual environment for fast API, install fast API and uvicorn, and verify the installation with pip list to prepare for labs.
Learn the basics of fast API by building a movie JSON object, exploring JSON data types, and using fast API for configuration and lightweight data storage.
Understand how http requests and responses flow between client and server by examining request line, method, url, headers, and body, and the status line, headers, and body of responses.
Learn how http methods define actions on a server, including get, post, put, and delete, with examples for retrieving movie data, creating resources, updating by id, and removing items.
Explore how endpoints map url paths to backend functions and support http methods like get, post, put, and delete. Understand base urls, path parameters in curly braces, and query parameters.
Learn how Swagger UI provides an interactive, web-based interface for FastAPI API documentation, enabling you to explore and test endpoints in a browser by visiting /doc.
Explore swagger ui to test fastapi endpoints end-to-end. Practice using try it out, execute requests, and verify get and post endpoints with path parameters and base url.
Build a FastAPI movie API by defining a movie class and implementing crud operations: retrieve all, by id, by genre, by year; create, update, or delete entries; set up environment.
Set up your project folder and virtual environment, then build a FastAPI movies API with endpoints for listing and retrieving by id. Test and explore with Swagger UI.
Pedantics is a Python library for data validation and settings management used with FastAPI to define models that validate data types, enforce constraints, and auto-parse data.
Learn field validation in pedantic by applying field constraints and custom validators with decorators. Explore default and optional fields, Pydantic error reporting, and rules for data types, ranges, lengths, patterns.
Explore adding validators in fastapi by updating a movie model to inherit the base model from pedantic and apply field and custom validators. Test with uvicorn and swagger UI.
Master HTTP status codes from 1xx to 5xx, with examples like 200, 201, 204, 301, 404, and 500, and learn to apply them in fastapi for clear api design.
Use HTTP exceptions in FastAPI to raise HTTPException with a status code, detail, and optional headers, standardizing responses. Handle missing resources, authentication errors, and invalid requests clearly and predictably.
This hands-on FastAPI course is designed for web developers (beginners to advanced) who want to build high-performance APIs with Python. Whether you're a student, junior dev, or senior engineer, you'll learn FastAPI fundamentals step by step—with real-world examples!
Prerequisites:
Basic Python knowledge (functions, OOP, variables)
Python installed on your computer
(Note: This is not a Python tutorial—it’s a FastAPI-focused course.)
To succeed in this course, it's important to have a good understanding of Python, including functions, variables, and OOP concepts. Additionally, you should have Python installed on your computer. Note that this is not a Python course but a FastAPI course.
The course is divided into three different levels, all of which are available for free. This "Crash Course On FastAPI For Web Developers - Level 1 Part 1" is the first of the series. Free courses on Udemy are limited to 2 hours each, hence the course is segmented into different levels to cover all content.
In "Crash Course On FastAPI For Web Developers - Level 1 Part 1," you will learn about:
What is FastAPI ?
Python Virtual Environment
HTTP Response
HTTP Request
HTTP Methods
HTTP Endpoints
Swagger UI
Data Validation With Pydantic
Fields Validation
HTTP Status Codes
HTTP Exceptions
We will work on Book and Movie objects to solidify your learning.
Crash Course On FastAPI For Web Developers - Level 1 'Part 2'
We will spend most of the time with Database Connectivity using SQLAlchemy
We will work on Book and Movie objects with a database to solidify your learning.