Glossary · Phase 8 · APIs
Pydantic
A Python library that checks data against a class with typed fields, converting values where it can and listing every problem it finds.
Try it now
Choosing the status code is part of designing an API: clients decide what to do from it.
Learn it properly
APIs with FastAPI · Typed routes, pydantic models, automatic validation and docs, tested with httpx. About 45 minutes.
Other terms from the same lesson
- response model: In FastAPI, the class that describes a reply: only its fields are sent, so internal data such as password hashes can't leak out.
Never trained an AI?
Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.