Skip to Content
Hands-On RESTful Python Web Services - Second Edition
book

Hands-On RESTful Python Web Services - Second Edition

by Gastón C. Hillar
December 2018
Intermediate to advanced
500 pages
12h 33m
English
Packt Publishing
Content preview from Hands-On RESTful Python Web Services - Second Edition

Improving Our API and Adding Authentication to it with Django

In this chapter, we will improve the Django RESTful API with a PostgreSQL 10.5 database that we started in the previous chapter. We will use many of the features included in Django REST framework to add new functions to the API and will add authentication-related security to it. We will do the following:

  • Add unique constraints to the models
  • Update a single field for a resource with the PATCH method
  • Take advantage of pagination
  • Customize pagination classes
  • Understand authentication, permissions, and throttling
  • Add security-related data to the models
  • Create a customized permission class for object-level permissions
  • Persist the user that makes a request and configure permission policies ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building RESTful Python Web Services

Building RESTful Python Web Services

Gastón C. Hillar
Python Command Line Tools

Python Command Line Tools

Alfredo Deza, Noah Gift

Publisher Resources

ISBN: 9781789532227Supplemental Content