FastAPI: Python API Development With Light Speed

Learning PathSkills: FastAPI, REST APIs, Web Development, Jinja2

FastAPI Web Development Learning Path Artwork

FastAPI lets you build Python web APIs quickly using standard type hints for automatic validation, serialization, and interactive documentation. This learning path takes you from your first endpoint to a complete web application.

By completing this path, you’ll be able to:

  • Create REST API endpoints with automatic request validation
  • Build a fully featured API application with data models and CRUD operations
  • Serve dynamic web pages using Jinja2 templates
  • Build and structure a complete URL shortener project

This path is for Python developers who want to build web APIs and applications with a modern, high-performance framework. You should be comfortable with Python basics and type hints.

You’ll start by creating your first endpoints, then build a complete REST API before moving on to HTML page rendering and a hands-on project.

FastAPI: Python API Development With Light Speed

Learning Path ⋅ 7 Resources

Getting Started With FastAPI

Get up and running with FastAPI. You’ll create your first endpoints, work with path parameters, and see how FastAPI uses Python type hints to generate interactive API documentation automatically.

Title image for Start Building With FastAPI (Get Started With FastAPI)

Course

Start Building With FastAPI

Learn how to build APIs with FastAPI in Python, including Pydantic models, HTTP methods, CRUD operations, and interactive documentation.

Title image for Get Started With FastAPI (Get Started With FastAPI)

Interactive Quiz

Get Started With FastAPI

Title image for Using Pydantic to Simplify Python Data Validation (Pydantic: Simplifying Data Validation in Python)

Course

Using Pydantic to Simplify Python Data Validation

Discover the power of Pydantic, Python's most popular data parsing, validation, and serialization library. In this hands-on video course, you'll learn how to make your code more robust, trustworthy, and easier to debug with Pydantic.

Building REST APIs

Build a fully featured REST API with FastAPI. You’ll handle request validation with Pydantic models, manage CRUD operations, and structure a real-world API application.

Title image for A Close Look at a FastAPI Example Application (A Close Look at a FastAPI Example Application)

Tutorial

A Close Look at a FastAPI Example Application

Set up an example FastAPI app, add path and query parameters, and handle CRUD operations with Pydantic for clean, validated endpoints.

Title image for Python REST APIs With FastAPI (Use FastAPI to Build Web APIs)

Course

Python REST APIs With FastAPI

Learn the main concepts of FastAPI and how to use it to quickly create web APIs that implement best practices by default. By the end of it, you will be able to start creating production-ready web APIs.

Serving Web Pages

FastAPI can serve more than JSON responses. Learn how to render dynamic HTML pages by integrating Jinja2 templates into your FastAPI application.

Title image for How to Serve a Website With FastAPI Using HTML and Jinja2 (How to Serve a Website With FastAPI Using HTML and Jinja2)

Tutorial

How to Serve a Website With FastAPI Using HTML and Jinja2

Use FastAPI to render Jinja2 templates and serve dynamic sites with HTML, CSS, and JavaScript, then add a color picker that copies hex codes.

Build a Project

Apply what you’ve learned by building a URL shortener from scratch. You’ll design the API, connect a database, and create a complete working web application with FastAPI.

Title image for Building a URL Shortener With FastAPI and Python (Build a URL Shortener With FastAPI and Python)

Course

Building a URL Shortener With FastAPI and Python

In this video course, you'll build an app to create and manage shortened URLs. Your Python URL shortener can receive a full target URL and return a shortened URL. You'll also use the automatically created documentation of FastAPI to try out your API endpoints.

Test Your Knowledge

You’ve made it through the entire path! In the wrap-up quiz below, you’ll revisit the most important ideas about routing, request handling, Pydantic validation, async endpoints, CORS, and serving HTML with Jinja2. Use it to spot any topics that still feel rusty before moving on.

Title image for FastAPI: Python API Development With Light Speed (A Close Look at a FastAPI Example Application)

Interactive Quiz

FastAPI: Python API Development With Light Speed

Test your FastAPI skills across REST APIs, Pydantic models, async endpoints, Jinja2 templates, and more in this learning path wrap-up quiz.

Congratulations on completing this learning path! You can now build REST APIs, serve templated web pages, and create complete web applications with FastAPI in Python.

You might also be interested in these related learning paths:

Got feedback on this learning path?

Looking for real-time conversation? Visit the Real Python Community Chat or join the next “Office Hours” Live Q&A Session. Happy Pythoning!

« Browse All Learning Paths