Back to Academy
Complete Learning Path

Python and FastAPI Beginner Course: Build a Practical REST API

A practical structured course about Python and FastAPI Beginner Course: Build a Practical REST API.

19
Lessons
15
Approx. hours
Beginner
Level
20
Planned
Start Series
Python Variables and Data Types
First lesson
Python Variables and Data Types

Series Lessons

Start with the first lesson and continue in order for the best result.

Python Variables and Data Types
Lesson 2

Python Variables and Data Types

Learn how to define variables in Python and understand basic data types: numbers, strings, booleans, and lists. Includes practical examples, common mistakes, and a hands-on...

45 min39
Conditions and Program Flow Control
Lesson 3

Conditions and Program Flow Control

Learn how to use if, elif, else statements in Python to control program flow. Practical explanation with code examples and a hands-on exercise for beginners.

45 min20
Python Loops and Iteration
Lesson 4

Python Loops and Iteration

Learn how to use for and while loops in Python with practical examples, avoid common mistakes, and a hands-on exercise to reinforce understanding.

45 min16
Functions and Code Organization
Lesson 5

Functions and Code Organization

Learn how to define functions in Python, use parameters and default values, and reuse code to build organized and maintainable programs.

45 min7
Lists, Dictionaries, and Practical Usage
Lesson 6

Lists, Dictionaries, and Practical Usage

Learn how to create lists and dictionaries in Python, understand their differences, and manipulate data with practical examples and exercises.

47 min14
Working with Files in Python
Lesson 7

Working with Files in Python

Learn how to read and write text files in Python using built-in functions, with practical examples, common mistakes, and a hands-on exercise.

45 min13
Error Handling and Exceptions in Python
Lesson 8

Error Handling and Exceptions in Python

Learn how to handle errors in Python using try/except/finally and raising exceptions. Practical explanation with code examples and exercises for beginners.

45 min12
Practical Introduction to OOP
Lesson 9

Practical Introduction to OOP

Learn the basics of object-oriented programming in Python: classes, objects, attributes, and methods. Practical explanation with code examples and an exercise to build your first...

45 min9
Managing Packages and Virtual Environments in Python
Lesson 10

Managing Packages and Virtual Environments in Python

Learn how to manage Python packages with pip and virtual environments (venv) to isolate your projects and avoid version conflicts. Practical explanation with examples, common...

46 min13
HTTP and REST API Fundamentals
Lesson 11

HTTP and REST API Fundamentals

Learn HTTP and REST API fundamentals: methods (GET, POST, PUT, DELETE), status codes, and practical API design. A preparatory lesson for building APIs with FastAPI.

55 min14
Install FastAPI and Create Your First Endpoint
Lesson 12

Install FastAPI and Create Your First Endpoint

Learn how to install FastAPI in a virtual environment, create your first simple API endpoint that returns a welcome message, and understand the basic project structure.

45 min19
Path and Query Parameters in FastAPI
Lesson 13

Path and Query Parameters in FastAPI

Learn how to use path parameters and query parameters in FastAPI to build dynamic and flexible endpoints. Practical explanation with code examples, common mistakes, and a hands-on...

45 min9
Data Modeling with Pydantic
Lesson 14

Data Modeling with Pydantic

Learn how to define data models using Pydantic in FastAPI, with automatic validation of inputs and outputs, and practical examples for creating task models.

46 min9
Build a Simple Tasks CRUD API with FastAPI
Lesson 15

Build a Simple Tasks CRUD API with FastAPI

In this hands-on lesson, you will learn to build a complete CRUD API for tasks using FastAPI: create, read, update, and delete tasks with clear code examples and a practical...

45 min11
Organize a Professional FastAPI Project
Lesson 16

Organize a Professional FastAPI Project

Learn how to structure a FastAPI project with a professional folder layout, separate routers, models, services, and reusable code to build a scalable and maintainable API.

45 min16
Connect FastAPI to SQLite
Lesson 17

Connect FastAPI to SQLite

Learn how to connect FastAPI to SQLite using SQLAlchemy. Practical guide to create a database, define tables, and perform CRUD operations inside your Tasks API.

45 min22
Validation and API Error Handling
Lesson 18

Validation and API Error Handling

In this lesson, you will learn how to validate input data in your API using Pydantic, and how to handle errors gracefully by returning clear error messages. Includes practical...

49 min8
Test APIs with Swagger and curl
Lesson 19

Test APIs with Swagger and curl

Learn how to test your API using the interactive Swagger UI and the curl command-line tool. Practical walkthrough with examples for testing various endpoints.

50 min32
Lesson 20: Build the Final Tasks API Project
Lesson 20

Lesson 20: Build the Final Tasks API Project

In this hands-on lesson, we build a complete Tasks API project using FastAPI and SQLite, with code organization, data validation, and API testing via Swagger. The project is ready...

45 min6