Udemy

Mastering REST APIs with FastAPI

Enroll Now
  • 2,697 Students
  • Updated 12/2024
4.5
(298 Ratings)
CTgoodjobs selects quality courses to enhance professionals' competitiveness. By purchasing courses through links on our site, we may receive an affiliate commission.

Course Information

Registration period
Year-round Recruitment
Course Level
Study Mode
Duration
13 Hour(s) 32 Minute(s)
Language
English
Taught by
Jose Salvatierra
Rating
4.5
(298 Ratings)
1 views

Course Overview

Mastering REST APIs with FastAPI

Build professional APIs using FastAPI, including 100% test coverage, background tasks, user authentication, and more!

With FastAPI you can build complete, high-performance APIs in days, and adding new features is blazing-fast. That's why FastAPI has become so popular in recent years.

In this course, I'll show you how to go from a blank slate to a complete, finished FastAPI application.


The project

We'll build social media API with user authentication, email sending, and file upload. Users will be able to register and log in using Bearer (JWT) tokens. They will be able to create posts, leave comments, and like existing posts.

We'll use Pydantic for data validation and encode/databases as our database connectivity library.


Advanced knowledge

Use background tasks in FastAPI to improve performance when running slow code, such as when sending emails (covered in the course) or when making slow requests to third party APIs (also covered).

Throughout the course we use an async database library, again to maximise performance, which is nonetheless straightforward to use. You'll learn about the different types of data relationships and how to model them, including many-to-many relationships.

You'll learn how to handle file uploads and what to do with the uploaded files, so you don't run out of server space.


Complete API testing

Finally, 100% of the code in this course has tests. You'll use pytest extensively to write integration and unit tests for the API. You'll learn about pytest fixtures, parametrization, and testing conventions.

Part of real-world development means logging! There's a lot of logging knowledge in this course, including how to set up the logging module properly, when to make logging calls, and where to store logs when your application is deployed.


Deployments

Of course, I'll show you how to deploy your FastAPI app using popular service Render.  You can deploy your FastAPI app for free, but I'll also show you some paid options for improved performance.

We'll also look at application management, error handling with Sentry, and CI/CD with GitHub Actions.


If you use or want to use FastAPI, this course contains everything you need to develop complete, real-world APIs.


Let's get started. I'll see you on the inside!

Course Content

  • 10 section(s)
  • 121 lecture(s)
  • Section 1 Course Introduction
  • Section 2 Complete Python Refresher (optional)
  • Section 3 Working with FastAPI
  • Section 4 Introduction to pytest
  • Section 5 Working with async databases
  • Section 6 Logging in FastAPI applications
  • Section 7 User authentication with FastAPI
  • Section 8 Many-to-many relationships
  • Section 9 User email confirmation
  • Section 10 File Uploads with FastAPI

What You’ll Learn

  • Gain broad experience with FastAPI
  • Understand how to test FastAPI apps using Pytest with 100% test coverage
  • Become a master of logging with the built-in logging module
  • Add user authentication with password hashing and Bearer tokens
  • Use an async SQL database and model one-to-many and many-to-many relationships
  • Send user emails when they register without a performance hit using background tasks
  • Handle file uploads and store them in a third-party service
  • Deploy your FastAPI apps to the cloud

Reviews

  • G
    Gaurav Kumar Saha
    1.0

    No explaination of core concepts at all, it feels like teacher is just dumping the knowlege or code that he has seen somewhere. There is no order of teaching. He is just buindling a boaring project. Worst experience. I have to use GPT for every like. Better go for some other course freely available in YT. Dont take this else if you only need certificate.

  • M
    Mike Aiello
    5.0

    Very good course content

  • M
    Matheus Zoccoler
    4.0

    The course is great in introducing FastAPI concepts. It starts with the basics, from Python to making your first request. I only felt that in the end it should spend more time explaining topics.. it goes very fast in some lectures and if you didn't have contact with FastAPI before it is kinda difficult.

  • H
    Harsh Kapoor
    2.0

    Explanation is too bad. Mostly I have to take help from any LLM models to understand every piece of code.

Start FollowingSee all

We use cookies to enhance your experience on our website. Please read and confirm your agreement to our Privacy Policy and Terms and Conditions before continue to browse our website.

Read and Agreed