Build a REST API with FastAPI
Build a personal expense tracker API with endpoints to add, list, filter, and delete expenses — persisted to a JSON file.
Intermediate
4 hours
7 lessons
Course Content
33 chapters across 7 lessons
2
Create an Expense
Build a POST endpoint that accepts, stores, and returns expenses
5 chapters
Progress0%
3
List and Filter Expenses
Add a GET endpoint that returns all expenses with an optional category filter
4 chapters
Progress0%
4
Get and Delete an Expense
Retrieve a single expense by its identifier and remove expenses from the tracker
4 chapters
Progress0%
5
Update an Expense
Add a PATCH endpoint that applies partial updates to existing expenses
4 chapters
Progress0%
6
Save Your Data
Persist expenses to a JSON file so data survives server restarts
5 chapters
Progress0%
7
Polish Your API
Add response models, error documentation, and a spending summary endpoint
5 chapters
Progress0%