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

YouTube

FastAPI Introduction - Full CRUD API Tutorial - Backend Engineering

Caleb Curry via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to build a complete CRUD (Create, Read, Update, Delete) API using FastAPI, Python's modern web framework for building APIs. Start with FastAPI fundamentals and setup, then progress through building your first API with paths and path parameters. Master GET requests by working with mock data stored in dictionaries and learn how to retrieve both multiple items and single campaigns. Explore API interaction techniques before advancing to mocked POST, PUT, and DELETE operations. Transition from mock data to real database integration by working with SQL databases and implementing lifespan events for proper database management. Build robust data types and seed your database with initial data. Implement comprehensive CRUD operations including GET requests for multiple items and single items by ID, create generic response types for consistent API responses, and handle POST requests for creating new data with custom create types. Complete your API by implementing PUT requests for updating existing data and DELETE requests for removing data from your database.

Syllabus

00:00 - Intro
00:41 - What is FastAPI?
01:58 - Getting Started
03:55 - Building an API
11:09 - Paths and Path Parameters
13:34 - GET Requests
15:44 - Mock data with dictionary
18:59 - How to get a single campaign
21:22 - Interacting with the API
26:36 - Mocked POST, PUT, DELETE
33:19 - Working with a Database
34:34 - SQL Databases
37:53 - GET multiple
40:11 - Lifespan Events
43:18 - Building the type
47:19 - Seeding the Database
49:47 - GET
51:17 - Types
53:09 - GET BY ID
54:50 - Generic Response Type
59:14 - POST - Creating data
1:02:40 - Custom create type
1:05:30 - PUT - Updating Data
1:06:52 - Retrieve data
1:08:54 - DELETE - Remove data
1:10:17 - Outro

Taught by

Caleb Curry

Reviews

Start your review of FastAPI Introduction - Full CRUD API Tutorial - Backend Engineering

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.