Django for APIs
Django for APIs
$39.00
Minimum price
$39.00
Suggested price
Django for APIs

This book is 100% complete

Completed on 2019-05-16

About the Book

Learn how to build web APIs with Python and Django 2.2.

Take a modern API-first approach to creating 3 different Django back-ends: a Library API, Todo API, and a Blog API with user authentication, permissions, proper documentation, and more. You'll even learn how to connect them to a React front-end for a truly full-stack web application.

TABLE OF CONTENTS

  • Introduction
  • Chapter 1: Web APIs
  • Chapter 2: Library website and API
  • Chapter 3: Todo API
  • Chapter 4: Todo React Front-end
  • Chapter 5: Blog API
  • Chapter 6: Permissions
  • Chapter 7: User Authentication
  • Chapter 8: Viewsets and Routers
  • Chapter 9: Schemas and Documentation

About the Author

William S. Vincent
William S. Vincent

William S. Vincent is the author of Django for Beginners and REST APIs with Django. Previously an early employee at Quizlet, he has used Django at multiple early-stage startups in the Boston area and taught computer science at Williams College. He writes regularly about Python and Django at wsvincent.com.

Bundles that include this book

Django for Beginners
Django for APIs
$78.00
Suggested Price
$68.00
Bundle Price

Table of Contents

  • Introduction
    • Prerequisites
    • Why APIs
    • Django REST Framework
    • Why this book
    • Conclusion
  • Chapter 1: Web APIs
    • World Wide Web
    • URLs
    • Internet Protocol Suite
    • HTTP Verbs
    • Endpoints
    • HTTP
    • Status Codes
    • Statelessness
    • REST
    • Conclusion
  • Chapter 2: Library Website and API
    • Traditional Django
    • First app
    • Models
    • Admin
    • Views
    • URLs
    • Webpage
    • Django REST Framework
    • URLs
    • Views
    • Serializers
    • cURL
    • Browsable API
    • Conclusion
  • Chapter 3: Todo API
    • Initial Set Up
    • Models
    • Django REST Framework
    • URLs
    • Serializers
    • Views
    • Consuming the API
    • Browsable API
    • CORS
    • Conclusion
  • Chapter 4: Todo React Front-end
    • Install Node
    • Install React
    • Mock data
    • Django REST Framework + React
    • Conclusion
  • Chapter 5: Blog API
    • Initial Set Up
    • Model
    • Tests
    • Django REST Framework
    • URLs
    • Serializers
    • Views
    • Browsable API
    • Conclusion
  • Chapter 6: Permissions
    • Create a new user
    • Add log in to the browsable API
    • AllowAny
    • View-Level Permissions
    • Project-Level Permissions
    • Custom permissions
    • Conclusion
  • Chapter 7: User Authentication
    • Basic Authentication
    • Session Authentication
    • Token Authentication
    • Default Authentication
    • Implementing token authentication
    • Endpoints
    • Django-Rest-Auth
    • User Registration
    • Tokens
    • Conclusion
  • Chapter 8: Viewsets and Routers
    • User endpoints
    • Viewsets
    • Routers
    • Conclusion
  • Chapter 9: Schemas and Documentation
    • Schemas
    • Documentation
    • Django REST Swagger
    • Swagger Log In and Log Out
    • Conclusion
  • Conclusion
    • Next Steps
    • Giving Thanks

Other books by this author

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. Free App. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets), MOBI (for Kindle) and in the free Leanpub App (for Mac, Windows, iOS and Android). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub