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

This book is 100% complete

Completed on 2020-08-13

About the Book

Django for APIs is a project-based guide to building modern 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 fundamentals and best practices.

In the book you’ll learn how to:

  • Build 3 Django backends from scratch, including a Library API, Todo API, and Blog API
  • Connect to a React JavaScript front-end
  • Integrate user authentication: basic, sessions, and tokens
  • Add permissions and proper documentation
  • Use viewsets and routers for concise code

If you’re curious about Python-based APIs, Django for APIs is a best-practices guide to writing and customizing your own quickly.

Reviews

 

"If you’re looking for a guide into the world of Django, then the three-step of Django for Beginners, Django for APIs, and Django for Professionals is ideal: get up and running, get into APIs, which are a cornerstone of modern app development, and then add the bits you need to your fledging app into production, from databases and static files, to user accounts and security. It’s a long road. Will’s books are an awesome companion."—CARLTON GIBSON, Django Fellow and Django REST Framework core contributor

"When readers interested in web development ask me what to read next after Python Crash Course, I refer them to Will's books: Django for Beginners, Django for APIs, and Django for Professionals. I highly recommend you check out his work."—ERIC MATTHES, author of Python Crash Course

"Will's books are a fantastic resource for web development with Django and Python. I highly recommended them.”—JEFF TRIPLETT, Python Software Foundation Director, DEFNA President, and REVSYS Partner

About the Author

William S. Vincent
William S. Vincent

William S. Vincent is the author of Django for Beginners, Django for APIs, and Django for Professionals. 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
Django for Professionals
$117.00
Suggested Price
$97.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
    • Tests
    • 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
    • dj-rest-auth
    • User Registration
    • Tokens
    • Conclusion
  • Chapter 8: Viewsets and Routers
    • User endpoints
    • Viewsets
    • Routers
    • Conclusion
  • Chapter 9: Schemas and Documentation
    • Schemas
    • Documentation
    • Conclusion
  • Conclusion
    • Next Steps
    • Giving Thanks

Authors have earned$9,219,630writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

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. 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) and MOBI (for Kindle). 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

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! 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