Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Build a Simple API from Scratch - FastAPI Tutorial for Beginners

Python Simplified via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to build a complete API from scratch using FastAPI in Python through a practical 22-minute tutorial that uses a real-world delivery scenario between New Jersey and New York. Master the fundamentals of API development by understanding what APIs are through simple analogies involving trucks, bridges, and tomatoes, then progress to hands-on coding where you'll create a functional API server with custom endpoints, path parameters, and async request handling. Explore essential FastAPI features including query parameters for dynamic data processing, inventory management systems, comprehensive error handling, and best practices for production-ready APIs. Set up your development environment using Conda and WSL, then implement and test your API using Uvicorn server while building a custom client application that demonstrates real-world API consumption. Gain practical experience with endpoint creation, asynchronous functions, dynamic inventory updates, and connecting frontend applications to backend services, all while following industry best practices for API design and development.

Syllabus

01:22 - What is an API? Explained with trucks & bridges
03:35 - Coding an API Server with FastAPI
06:02 - Creating Endpoints
08:10 - Async Functions
08:42 - Path Parameters
09:45 - Running the API Server with Uvicorn
13:17 - Custom Client App
16:15 - Updating Inventory Dynamically
19:03 - Error Handling in FastAPI
20:15 - Best Practices & Next Steps
21:26 - Thanks for Watching! :

Taught by

Python Simplified

Reviews

Start your review of Build a Simple API from Scratch - FastAPI Tutorial for Beginners

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.