Your Cart
Loading

Build a Local API with FastAPI

On Sale
£4.99
£4.99
Added to cart

Build and test a local to-do API with validation, filtering and clear error responses.


A focused 6-page practical workbook by Thomas Reid, with a complete Python example, request-level tests, setup instructions, exercises and worked answers.


Create, read, replace and delete records. Validate request bodies and pagination, handle missing IDs and test the empty-store case. Use FastAPI’s interactive documentation on your own computer.


This is a local learning project: records are held in memory and reset when the process restarts. Authentication, persistent storage and production hosting are outside its scope.


Download: one ZIP containing the PDF, app source, tests, requirements and README. Tested on Windows with Python 3.13.17 and FastAPI 0.115.10.


This is a revised practical edition based on my published Medium article, with replacement runnable examples. It is not a verbatim reprint. Suitable for readers who can run Python scripts.

You will get a ZIP (100KB) file