Completely updated for Django 5.1 & Django REST Framework 3.15 Django for APIs is the fifth edition of the leading guide to building modern web APIs with Django & Django REST Framework. It is suitable for beginners who have never built an API before, as well as professional programmers looking for a fast-paced introduction to Django API fundamentals and best practices.
Over the course of 200+ pages, you'll learn how to set up a new project properly, create and customize RESTful APIs, integrate a Vue.js frontend, and more. Three separate projects are built from scratch with progressively more advanced features, including a Library API, Todo API, and Blog API. User authentication, permissions, documentation, viewsets, and routers are all covered thoroughly.
Key Features- Updated for Django 5.1 and Python 3.13
- Robust introduction to APIs and RESTful web development
- Build a dedicated Vue.js frontend connected to a Django API backend
- Write robust tests and implement custom permissions
- Implement user authentication: signup, login, logout, and password reset
- Work with viewsets, routers, and documentation