Skip to main content

Building APIs with FastAPI

1h 35m 40s
English
Paid

Learn API Development with FastAPI

An API is the backbone of any modern data platform, allowing you to either offer your services to clients or leverage external services yourself. Mastering the art of working with APIs is crucial, and this course is designed to equip you with the foundational skills for designing, developing, and deploying APIs using FastAPI. FastAPI is a modern Python framework tailor-made for rapid API creation and testing. Additionally, you'll learn how to use Docker for deployment and Postman for API testing.

Understanding API Basics

Gain a comprehensive understanding of what an API is, its necessity, and the role it plays in client-server interactions. Dive into the REST architecture and grasp its four essential principles. Learn about HTTP methods such as GET and POST, the types of data transmitted via APIs, how to decode server response codes, and how to effectively use API parameters.

Setting Up Your Environment and Preparing Data

Set up a development environment with tools like WSL2, Python, Visual Studio Code, and FastAPI. Prepare a dataset that you'll use while constructing your API, ensuring you have a solid foundation for your API development tasks.

Designing Your API

Learn to architect the API by defining resources, methods, and schemas based on your data. Get introduced to OpenAPI and Swagger Editor, powerful tools for documenting and visualizing your API interfaces, ensuring a robust and user-friendly design.

Hands-On Development Experience

Practice creating simple yet functional API endpoints, such as POST customer, GET customer, and GET invoice. Understand the fundamental structure of a typical API and learn to organize your code according to industry best practices.

Deploying and Testing with Docker and Postman

Discover how to package your application into a Docker container and deploy it efficiently. Use Postman, a leading tool for API testing, to ensure your APIs are functioning as expected, making your development and deployment process seamless.

About the Author: Andreas Kretz

Andreas Kretz thumbnail

I am a senior data engineer and trainer, a tech enthusiast, and a father. For more than ten years, I have been passionate about Data Engineering. Initially, I became a self-taught data engineer and then led a team of data engineers at a large company. When I realized the great demand for education in this field, I followed my passion and founded my own Data Engineering Academy. Since then, I have helped over 2,000 students achieve their goals.

Watch Online 21 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 21 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: Introduction
All Course Lessons (21)
#Lesson TitleDurationAccess
1
Introduction Demo
02:18
2
What are APIs and what are they used for
08:30
3
Hosting vs using APIs
04:09
4
Methods and Media Types
06:57
5
HTTP response code
05:23
6
API Parameters
04:19
7
Setup environment with WSL2, VS Code & FastAPI
04:56
8
Testing FastAPI
03:22
9
The dataset we use
02:42
10
API Design
04:27
11
Schema implementation preview
05:04
12
OpenAPI & Swagger
05:15
13
POST Customer API
06:24
14
Get Customer API
03:06
15
POST Create Customer Invoice API
06:51
16
GET Invoice API
02:04
17
GET All Invoices for Customer API
03:11
18
Setup Docker and Deploy on WSL2
06:02
19
Testing the APIs with Postman
04:23
20
Security
03:49
21
Conclusion
02:28
Unlock unlimited learning

Get instant access to all 20 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription