Skip to main content

Building APIs with FastAPI

1h 35m 40s
English
Paid

Course description

An API is the foundation of any modern data platform. You either provide an API for clients or use external APIs yourself. In any case, it is important to know how to work with them.

In this course, you will master all the basic skills necessary for designing, developing, and deploying APIs. We will use FastAPI, a modern framework for Python, ideal for quickly creating and testing APIs. You will also learn to use Docker for deployment and Postman for testing.

Read more about the course

API Basics

You will understand what an API is, why they are needed, and how they facilitate interaction between the client and server. You will get acquainted with the REST architecture, its four key principles, HTTP methods (GET, POST, etc.), and the types of data transmitted through APIs. You will also learn how to interpret server response codes and use API parameters.

Environment and Data Preparation

You will learn to set up a working environment using WSL2, Python, Visual Studio Code, and FastAPI. We will also prepare a dataset to work with when building the API.

API Design

You will learn how to design the structure of an API based on your data: defining resources, methods, and schemas. We will introduce you to OpenAPI and Swagger Editor - convenient tools for interface documentation and visualization.

Practical Development

In practice, you will create simple yet useful API functions: for example, POST customer, GET customer, GET invoice. You will gain insight into the structure of a typical API and learn to organize it according to best practices.

Deployment and Testing with Docker and Postman

You will assemble and run the application in a Docker container and test it using Postman - one of the most convenient tools for working with APIs.

Watch Online

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

Comments

0 comments

Want to join the conversation?

Sign in to comment

Similar courses

Python Interview Espresso

Python Interview Espresso

Sources: interviewespresso (Aaron Jack)
Learn the algorithms, patterns, and process in Python.
5 hours 11 minutes 29 seconds
Distributed Tasks Demystified with Celery, SQS & Python

Distributed Tasks Demystified with Celery, SQS & Python

Sources: udemy
This course teaches beginners to industry professionals the fundamental concepts of Distributed Programming in the context of python & Django. We look at how t
4 hours 27 minutes 50 seconds
Python 3: Deep Dive (Part 2 - Iteration, Generators)

Python 3: Deep Dive (Part 2 - Iteration, Generators)

Sources: udemy
I will show you exactly how iteration works in Python - from the sequence protocol, to the iterable and iterator protocols, and how we can write our own sequence and iterable da...
34 hours 42 minutes 47 seconds
Machine Learning & Containers on AWS

Machine Learning & Containers on AWS

Sources: Andreas Kretz
In this practical course, you will learn how to build a complete data pipeline on the AWS platform - from obtaining data from the Twitter API to analysis, stora
1 hour 33 minutes 34 seconds
DevOps Deployment Automation with Terraform, AWS and Docker

DevOps Deployment Automation with Terraform, AWS and Docker

Sources: udemy
Welcome to the advanced course on how to set up a deployment automation that’s capable of handling millions of users! In this course you will learn some of the most in-demand sk...
10 hours 59 minutes 9 seconds