Book Image

Building RESTful Python Web Services with Django [Video]

By : Gaston C. Hillar
Book Image

Building RESTful Python Web Services with Django [Video]

By: Gaston C. Hillar

Overview of this book

<p>Python is the language of choice for millions of developers worldwide, due to its gentle learning curve and its vast applications in day-to-day programming. It builds great and reliable web services in the RESTful architecture. This video will show you the best tools you can use to build your own Python web services. </p><p> </p><p>You’ll start by learning how to develop RESTful APIs using the Django framework combined with related libraries and tools. We’ll delve into the Django framework to build various web services. We’ll show you everything you need to successfully develop RESTful APIs with the Django framework such as request handling, URL mapping, serialization, validation, authentication, authorization, and databases. </p><p> </p><p>By the end of the video, you’ll have a deep understanding of the stacks needed to build RESTful web services. </p><p> </p><p>The code bundle for this course is available at https://github.com/PacktPublishing/Building-RESTful-Python-Web-Services-with-Django/</p>
Table of Contents (8 chapters)
Chapter 4
Working with Hyperlinked APIs in Django
Content Locked
Section 3
Creating Class-Based Views and Using Generic Classes
We write API views by declaring class-based views, instead of function based views. We use base classes for our class based views to reduce the required code to the minimum and take advantage of the behaviour that has been generalized in Django REST Framework. - Modify the views.py file - Add different classes