Build REST APIs with FastAPI
1h 11mIntermediate2024-12-17
Authors

Miki Tebeka
CEO at 353Solutions
Course details
FastAPI is a simple, powerful, and fast Python web server. In this course, instructor Miki Tebeka shows you how to use FastAPI to quickly create robust REST API servers and make your server code production ready.
Learning objectives
Use FastAPI to write web servers.
Understand async handlers and their limitations.
Receive, validate, and send data.
Make server code production ready.
Learning objectives
Use FastAPI to write web servers.
Understand async handlers and their limitations.
Receive, validate, and send data.
Make server code production ready.
Skills covered
APIsFull-Stack Web DevelopmentPythonWeb DevelopmentProgramming LanguagesOpen SourceSoftware DevelopmentOne-Off
Concepts
0. Introduction
- 01 - What is FastAPI
- 02 - What you should know
- 03 - How to work with Codespaces
1. REST APIs
- 04 - What are REST APIs
- 05 - The HTTP protocol
- 06 - JSON encoding
2. FastAPI Basics
- 07 - Writing handlers
- 08 - Running the server
- 09 - Async handlers
- 10 - Challenge - Info handler
- 11 - Solution - Info handler
3. Accepting Data
- 12 - Query parameters
- 13 - Request body
- 14 - HTML forms
- 15 - Raw data
- 16 - Challenge - Start and stop a VM
- 17 - Solution - Start and stop a VM
4. Sending Data
- 18 - JSON responses
- 19 - Streaming responses
- 20 - Raw data responses
- 21 - Sending errors
- 22 - Challenge - Query logs
- 23 - Solution - Query logs
5. Writing Production-Ready Code
- 24 - Configuration
- 25 - Logging and metrics
- 26 - Security
- 27 - Working with databases
- 28 - Challenge - Make a server production ready
- 29 - Solution - Make a server production ready
Conclusion
- 30 - What's next