The new lineup is here. Stunning design. New colors. Explore now.
Buy Used :
$8.99
FREE delivery October 21 - 23. Details
Or fastest delivery October 20 - 22. Details
Used: Very Good | Details
Condition: Used: Very Good
Comment: Missing dust jacket; May have limited writing in cover pages. Pages are unmarked. ~ ThriftBooks: Read More, Spend Less
Access codes and supplements are not guaranteed with used items.
In stock
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

  • REST APIs with Django: Build powerful web APIs with Python and Django

Follow the author

Follow authors for new release and deal updates, plus improved recommendations. See updates from all followed authors in Your Books.
Something went wrong. Please try your request again later.

REST APIs with Django: Build powerful web APIs with Python and Django


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

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 Frontend
  • Chapter 5: Blog API
  • Chapter 6: Permissions
  • Chapter 7: User Authentication
  • Chapter 8: Viewsets and Routers
  • Chapter 9: Schemas and Documentation
  • Conclusion

Customers also bought or read

Loading...

Product details

About the author

Follow authors for new release and deal updates, plus improved recommendations. See updates from all followed authors in Your Books.
William S. Vincent
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

William Vincent is the founder of LearnDjango, an online learning platform for Django developers. He is a former Django Software Foundation Board Member, host of the Django Chat podcast, and author of the Django News newsletter. A regular conference speaker at DjangoCon events, he previously worked at Quizlet and taught computer science at Williams College.

Customer reviews

4.4 out of 5 stars
253 global ratings

Customers say

Customers find this book to be a great introduction to Django APIs, with concepts explained clearly through simple examples. They appreciate its clarity and find it easy to follow, though opinions about its simplicity are mixed. The functionality receives mixed feedback, with customers reporting that every piece of code works, though one notes it's not suitable for more serious projects. The value for money receives mixed reactions, with several customers mentioning the price point of $40.
AI Generated from the text of customer reviews

Select to learn more

40 customers mention content, 29 positive, 11 negative
Customers find the content of the book useful and highly recommend it as a must-read guide, particularly for beginners learning about APIs.
Great book for a basic understanding of REST APIs with Django. Concepts are explained clearly with simple examples.Read more
Good book the print and images are so large it feels like the author did this just for a page count....Read more
Very little actual content. The majority of the book is the same code/screenshots being pasted over and over again....Read more
Excellent BookRead more
22 customers mention clarity of content, 18 positive, 4 negative
Customers find the book's content clear and easy to understand, with concepts explained through simple examples. One customer notes it serves as a great follow-up to the introductory Django book, while another mentions it provides pointers for further information.
Simple explanations and nice projects. I am using this book as a blue print for a small project. I found it a good introduction to Django APIsRead more
Clear explanation and code snippetRead more
...Especially the chapters on authorization and authentication helped me make sense of it all.... Save yourself time and headaches: buy this book.Read more
It covers the basics of DRF, but it is good enough for beginners. But if you are already familiar with DRF, this book might disappoint you.Read more
6 customers mention clarity, 5 positive, 1 negative
Customers find the book very clear.
...recommend this book to anyone interested in Django APIs, it is very clearly written, the different concepts are introduced at the appropriate time,...Read more
...however, is very clear and updated , i very enjoyed from it , so it gets my 5 stars .Read more
...This book was well written easy to understand coding and explanations. I would highly recommend to anyone looking to build a Django based API.Read more
Concise and easy to follow.Read more
9 customers mention simplicity, 6 positive, 3 negative
Customers have mixed opinions about the book's simplicity, with some finding it easy to follow and understand, while another customer notes that it progresses from simple to more complicated features.
This i a great follow up to the introductory Django book. Easy to follow and all examples worked for me as written, without having to search the...Read more
Overall, I found the book to be useful, but I feel like the tutorials were too simple, and always there were more questions....Read more
...So it is easy to follow and understand. Looking forward to more Django books from this author.Read more
This is pretty basic and it serves you well if you need an introduction....Read more
9 customers mention value for money, 6 positive, 3 negative
Customers have mixed opinions about the book's value for money, with some noting it costs around $40.
...me make sense of it all.... Save yourself time and headaches: buy this book.Read more
...most unfair part of Vincent's book and the other is, they are really very expensive for what they are offering....Read more
...a beginners book, but I consider those topics are basic, and it's not a cheap book.Read more
Learned a ton working through this book, absolute must buy for anyone looking to continue learning and growing in their django developmentRead more
6 customers mention functionality, 3 positive, 3 negative
Customers have mixed experiences with the book's functionality, with some reporting that every piece of code works, while others mention specific issues with token authentication not working as described.
...different concepts are introduced at the appropriate time, and all the code works! So it is easy to follow and understand....Read more
...The biggest slow down is chapter 8 on authentication. Token auth does not work as described, and there are Stack Overflow posts about it....Read more
...Easy to follow and all examples worked for me as written, without having to search the Internet for how to fix it, I hate software books where the...Read more
...Everything was going great until chapter 2 when the code presented didn't work....Read more
Should have been an appendix... not a separate book
2 out of 5 stars
Should have been an appendix... not a separate book
I bought and completed all three books hoping that the API coverage would be the meatiest. I was sorely dissapointed. After reading this book and completing the exercises, it could have been done in twenty or so pages of single spaced print. Much of this book is re-hashing what has been covered by the two previous books. While I don't mind the rehash and repetition (think of the Hard Way books by Zed Shaw) , that left very little instruction for the price of admission. I completed this book in one day. If nothing else, I would have loved more thorough explanations, different examples, and a lot more depth on what was covered. What this book could have really used was some real world examples of what some big sites are doing with API's, how to access them, and how to build some of that functionality. However, what this book did, was to go back to the basic blog app that ever django book mentions and write a very simple API for it. It also had an authentication/authorization section that was just starting to get interesting when the book concluded. The other books are a bit overpriced and watered down, but useful. This book is a pamphlet feeding off goodwill from the prior books and author's name.
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

  • 5 out of 5 stars
    Up-to-date (printed on day it is ordered)
    Reviewed in the United States on October 12, 2018
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Here is, yet another, 5-star review.

    Summary:

    * Better beginner resource than official docs and other books

    * Up-to-date (mine was printed on the same day that I ordered the book)

    * Quick read (went through it in just a few days)

    The Full Review:

    When I first started to play around w/ python I remember setting up an API by following DRF's quickstart. It worked. I set an API up but I couldn't do anything w/ it. I didn't understand what was going on or what had happened behind the scenes to get this app up and running. Going through the rest of the official documentation, I realized that it's meant for people who are comfortable w/ Python and are VERY comfortable w/ Django. But if you haven't had a chance to build several production projects where you've installed and successfully configured 3rd party apps, the official tutorial can be hard to follow.

    I've since had the opp to play around w/ Django a bit. I've built a few real-life apps w/ it. About a month ago I reached a pt where I needed to implement an API for one such project. I revisited the official tutorial but while I understood a lot more this time, I still felt somewhat lost.

    I decided to follow an e-book that I got a few months back as part of an e-book bundle purchase I made. Everything was going great until chapter 2 when the code presented didn't work. I found that the number one complain for that book was errors in code. No good.

    Searching for a DRF-specific book, I this book. I have Vincent's "Django for Beginners" book and I've found it to be the best resource for DJango by far. Knowing that I liked his way of teaching and his way of writing, I went for this book instantly. Didn't even bother to read the reviews.

    The first thing to note about this book is that it is up-to-date. How new and fresh is the information in the book? The bottom part of the very last page has the print date. Mine was printed the very same day I purchased it. EVERY piece of software referenced matched the actual latest version of said software/add-on. This alone, is reason enough to purchase this book over any other.

    William takes time to explain how REST works. He provides details for how requests and tokens and codes are sent back and forth from client to server. Every piece of code works and the explanation of said code is very easy to understand.

    This is a quick read. Should be doable in a weekend if you've got nothing else going on. You'll be up and running a real API in no time. Better yet, you will be at a point where you can jump over to the official DRF docs. My next steps will definitely be to get a better handle on the 3rd party software used in the book (swagger, rest_auth, allauth, etc). Again, this book sets you up so that you can use all of these packages' official docs as reference... as they were intended to be used.

    Buy this book if you are new to APIs, have been developing Django apps for less than a yr, or if you've set up DRF-based APIs using the official docs but still not quite sure how/why things work.

    15 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

    We'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.

  • 5 out of 5 stars
    Excellent hands-on tutorial
    Reviewed in the United States on August 9, 2023
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    The best first book on APIs I've read for Django. If you've worked through the first book, then this one gets even better.

    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

    We'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.

  • 5 out of 5 stars
    Clear guide
    Reviewed in the United States on August 21, 2018
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I follow most of William S. Vincent's post. He helps me make sense of a lot of Django and produce better code. I jumped at his REST API book. I think it is a very clear guide for someone first starting in DRF. He goes through all the fundaments of Django Rest Framework (DRF) and even some of the better parts of DRF: viewsets, routers, and the overwhelming authentication/authorization. WIll get you feeling comfortable with this bad boy, no doubt.

    2 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

    We'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.

  • 4 out of 5 stars
    Very good if a bit outdated; not as in-depth as Django for Beginners
    Reviewed in the United States on November 7, 2023
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    A good overview of DRF, going from setting up basic endpoints, serializers, generic views to eventually viewsets and routers. Key concepts.

    It's less in-depth and thorough than the flagship Django for Beginners. It's about 60% as big, but then DRF is smaller than Django. Still, I felt like DfB got me further along in Django than this did in DRF.

    My version was printed in May 2023 and is sadly not updated as much as my Django for Beginners published on the same date. It still users Heroku (no longer free) for deployment and has outdated commands for installing pscyopg2.

    The biggest slow down is chapter 8 on authentication. Token auth does not work as described, and there are Stack Overflow posts about it. I was also unclear why we needed both dj-rest-auth and django-allauth. These are small nits that keep it from getting a full five stars

    One person found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

    We'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.

  • 5 out of 5 stars
    Excellent Book
    Reviewed in the United States on September 7, 2024
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Learned a ton working through this book, absolute must buy for anyone looking to continue learning and growing in their django development

    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

    We'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.

  • 3 out of 5 stars
    good for toy hobby sites, will not work for anything slightly more serious
    Reviewed in the United States on June 10, 2019
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I bought both of the author's books, this one and Django for beginners. They are both very elementary. If you are clueless and want to get into programming with Django, these will be perfect for you. They are treating the material at the middle school level, which is good for real beginners. If you want more though, you should really look around. I have also bought "Practical Django 2 and Channels 2: Building Projects and Applications with Real-Time Capabilities"

    by Federico Marani on Amazon. It is a much more serious treatment of the subject, it addresses several critical details that you would need for any beyond-toy web apps. Also you eventually end up with a serious serious application. The most unfair part of Vincent's book and the other is, they are really very expensive for what they are offering. Practical Django 2 is doing everything and more for only $30, including API development, websockets(!) etc, while Vincent charges 2x$39=$78 for two really toy books. If you are into API, that already means you'll need more and this book is probably not for you. But again, if you are a clueless beginner, that might be your book.

    23 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

    We'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.

  • 5 out of 5 stars
    Clear, easy-to-understand guide to Django REST Framework
    Reviewed in the United States on June 29, 2018
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This book was a revelation for me. After struggling to follow along with the official REST Framework tutorial, I was ready to try something else. This book changed that. It's truly amazing--as the author notes--how little code it takes to build production-ready web APIs. Even things like documentation and authorization are handled with ease. I'm sold.

    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

    We'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.

  • 5 out of 5 stars
    Really useful book
    Reviewed in the United States on April 29, 2019
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Thanks so much to the author. Great job. I am an ASP.Net Web API developer and I was struggling with Django Rest Framework documentation, because it assumes that you dominate Django. I was kind of lost. I tried several tutorials and I was working okay with them, but I wasn't learning the things I wanted to learn, as registration, tokens, and more.

    It worths the money 100%. The books also has helped me to realize that there are a lot of things that I could be doing better even with the ASP.Net Web API. I can't wait to move completely from ASP.Net Web APi to Django Rest.

    My only minor, but really minor complain it's the Kindle version has to improve the code layout, because there are some coding lines that get unorganized. But other than that 5/5!!!!

    2 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

    We'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.

Top reviews from other countries

    Translated by Amazon
    See original
  • 5 out of 5 stars
    Django for APIS
    Reviewed in Italy on August 12, 2020
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I appreciated it a lot.

    Sending feedback...
    Thanks, we'll investigate in the next few days.

    We'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.

  • 5 out of 5 stars
    Satisfied
    Reviewed in Canada on August 26, 2022
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I'm satisfied

    Sending feedback...
    Thanks, we'll investigate in the next few days.

    We'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.

  • 5 out of 5 stars
    The best Django API book out there
    Reviewed in the United Kingdom on November 8, 2022
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Excellent book about implementation of API using Django - material is well presented, it is easy to follow and everything is very well explained. This is probably the best book for somoone who wants to advance his Django knowledge and build APIs. There is no need to look for anything alse. There is another book in the series - Django for Profesionals - highly recommended. Those books are going to save you a lot of time learning Django.

    Sending feedback...
    Thanks, we'll investigate in the next few days.

    We'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.

  • 5 out of 5 stars
    Good book for beginners who wanted to code Django API
    Reviewed in India on May 1, 2020
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    The author explained all concepts very well. Personally, I was expecting custom user model creation and adding endpoints to it. But this books covers django allauth.

    Sending feedback...
    Thanks, we'll investigate in the next few days.

    We'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.

  • 5 out of 5 stars
    中級レベルに最適!
    Reviewed in Japan on September 22, 2018
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    洋書だが、簡単な英語で書かれているので、日本人でもサクサク読める。(英語の勉強にもなる)

    全ての手順がチュートリアルとして記載されており、簡単なアプリケーション作成を通して、DjangoのAPIの作成方法を学ぶことができる。

    中には、フロントエンドをReact、バックエンドをDjangoで作成する簡単なアプリ作成もあり、学べる点が多いと感じた。

    Sending feedback...
    Thanks, we'll investigate in the next few days.

    We'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.

    Translated from Japanese by Amazon
    See original