Building a web API means thinking beyond a single website: the same back end can serve different interfaces and applications. In Django for APIs, William S. Vincent introduces that API-first perspective through practical projects built with Python, Django, and Django REST Framework.
The book begins with the language of web APIs, then applies it step by step to a library, a Todo app, and a blog. Along the way, the concepts become working Django components—models, URLs, views, serializers, tests, permissions, and authentication.
Start with how web APIs work
Before building, the opening chapter explains URLs, HTTP methods, endpoints, status codes, statelessness, and REST. This foundation gives readers a clearer way to understand the requests and responses that connect a client to an API.
Three projects, increasing in scope
The project chapters develop a library API, a Todo API, and a blog API. Readers encounter Django models and views alongside Django REST Framework serializers and API views, with tests and the browsable API included in the project work. A separate chapter connects the Todo back end to a React front end.
Handle access and authentication
Later chapters examine permissions at different levels, custom permission rules, and several authentication approaches: basic, session, and token authentication. User endpoints, registration, and token implementation extend the examples into common API access patterns.
Organize and explain an API
Viewsets and routers show how related endpoints can be organized, while the final technical chapters introduce schemas and API documentation. Together, these topics help readers consider not only how to make an API respond, but also how to structure and describe it.
A practical next step for Django developers
The book recommends basic Python knowledge and prior experience with traditional Django. Readers with that grounding can use its project-led approach to explore how Django can power APIs for web and other client applications. 💻
User Reviews
Only logged in customers who have purchased this product may leave a review.
Django for APIs: Build web APIs with Python and Django
Sold by William S. Vincent
Original price was: $5.00.$2.50Current price is: $2.50.

There are no reviews yet.