Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
FastAPI for Beginners: Build High-Performance REST APIs
Rating: 4.5 out of 5(23 ratings)
663 students
Last updated 12/2025
English

What you'll learn

  • Understand what FastAPI is and why it’s one of the fastest Python frameworks
  • Set up and run FastAPI projects using Python and virtual environments
  • Build REST APIs using GET, POST, PUT, and DELETE methods
  • Work with path parameters, query parameters, and request bodies
  • Create full CRUD APIs
  • Build and test a real-world FastAPI project

Course content

1 section26 lectures3h 30m total length
  • Introduction4:37

    Learn to build a fast api in five minutes by creating a small app, installing fast api and unicorn, and running it locally on port 8000.

  • How to use dynamic path and parameter queries in FastAPI7:39

    Learn to build dynamic endpoints using path and query parameters in FastAPI, including type validation, dynamic item IDs, and optional queries with skip and limit.

  • How to handle POST requests with Pydantic Models in FastAPI6:12

    Define an item model with Pydantic and post it to a FastAPI endpoint to validate input data, returning a created item and handling validation errors.

  • How to cleanup responses using Response Model in FastAP5:51

    Learn how to clean up FastAPI responses by using a dedicated Pydantic based response model to hide passwords and return only name, price, and is_offer.

  • How to connect and use a SQLite database offline with FastAPI8:17

    Connect a FastAPI app to a local SQLite database using SQLModel, define a model, set up an engine and tables, and expose post and get endpoints with Swagger UI.

  • How to connect to an online PostgreSQL Database server7:13

    Connect a FastAPI app to an online PostgreSQL database using Supabase, define a SQLModel item model, create an engine and session, and expose post and get endpoints to manage items.

  • How to connect to an online MySQL database using FastAPI7:19

    Connect your FastAPI app to an online MySQL database by configuring a MySQL URI, installing FastAPI and MySQL drivers, and building create and get endpoints that persist items.

  • How to setup User Authentication Login Signup System APIs15:39

    Build a user authentication system with FastAPI, implementing login and signup, password hashing with bcrypt, and database integration using SQLAlchemy and databases.

  • How to implement a middleware in FastAPI5:02

    implement a middleware in FastAPI that acts as a pre-check, logs each request time, measures processing time, and prints the request method and URL before returning the response.

  • How to implement all CRUD (Create, Read, Update and Delete) API16:38

    Build a complete CRUD API in fastapi using sqlalchemy, featuring post, get, update, and delete endpoints, pydantic models, and swagger docs for testing.

  • Working with Jinja Templates and Forms Submission8:16

    Learn to render Jinja templates in FastAPI and handle form submissions with a post request, using username and frequency for a looping result.

  • How to work with Environment variables and Configuration Files5:39

    Learn to manage secrets in FastAPI using dot env files and pydantic settings to load database URL and secret key, exposing them via a simple configuration class.

  • How to handle exceptions and build custom exceptions in FastAPI8:20

    Learn to handle and build customized exceptions in fastapi, including http exceptions and a not found handler, returning json responses with 400 and 404 status codes.

  • How to handle Images_File Submission in HTML Forms11:52

    Learn to handle image submissions in fastapi via an html form with multipart/form-data, store in static/uploads, and display results with html templates.

  • How to setup a JWT Authentication system in FastAPI25:45
  • How to setup protected routes in FastAPI with help of JWT access5:53
  • How to connect to AWS CLI using AWS KEYS3:05
  • How to connect AWS RDS MYSQL server to FastAPI8:52
  • How to connect to AWS RDS PostgreSQL Database using FastAPI5:19
  • How to connect AWS RDS MariaDB Database using FastAPI4:12
  • How to store objects on AWS S3 with FastAPI7:06
  • How to build a Docker Image for a FastAPI application4:55
  • How to PUSH, PULL and RUN a docker image of a FastAPI app4:49
  • How to PUSH, PULL and RUN a docker image of FastAPI app7:44
  • How to deploy a FastAPI application on AWS EC2 using DockerHub5:59
  • How to deploy a FastAPI application on AWS EC2 with AWS ECR8:40

Requirements

  • Basic knowledge of Python programming
  • Python installed on your system (installation is explained in the course)
  • No prior experience with APIs or FastAPI is required
  • No advanced frameworks or backend knowledge needed

Description

FastAPI is one of the fastest-growing Python frameworks for building modern, high-performance APIs. If you want to create production-ready REST APIs using Python with clean code and automatic documentation, this course is for you.

In this beginner-friendly course, you’ll learn FastAPI from scratch, even if you have never built an API before. We’ll start with the fundamentals and gradually move toward building real-world, scalable APIs.

What you’ll learn

  • Understand what FastAPI is and why it’s faster than traditional frameworks

  • Set up FastAPI with Python and virtual environments

  • Create REST APIs using GET, POST, PUT, and DELETE

  • Use Pydantic models for request validation and response schemas

  • Work with path parameters, query parameters, and request bodies

  • Implement CRUD operations

  • Build asynchronous APIs using async and await

  • Add authentication and authorization

  • Handle errors and validations properly

  • Auto-generate API documentation using Swagger UI & ReDoc

  • Structure FastAPI projects using best practices

  • Build a real-world API project step by step

Who this course is for

  • Beginners who want to learn API development with Python

  • Python developers looking to upgrade to FastAPI

  • Backend developers exploring modern frameworks

  • Students preparing for backend or full-stack roles

Requirements

  • Basic understanding of Python

  • No prior API or FastAPI experience required

By the end of this course, you’ll have the confidence to build, test, and deploy modern APIs using FastAPI, and you’ll be ready to use it in real projects or professional environments.

Start building fast, scalable, and modern APIs with Python today!

Who this course is for:

  • Beginners who want to learn API development with Python
  • Python developers who want to start using FastAPI
  • Backend developers exploring modern, high-performance frameworks
  • Students preparing for backend or full-stack development roles
  • Developers who want to build clean, scalable REST APIs