Oreilly - Building RESTful Python Web Services with Django
by Gastón C. Hillar | Publisher: Packt Publishing | Release Date: July 2017 | ISBN: 9781788620154
Create lightweight, maintainable, scalable, and secure web apps using the best tools and techniquesAbout This VideoDevelop RESTful Web Services using the Django framework in PythonConfigure and fine-tune your APIs using the best tools and techniques availableThis practical guide will help you implement complete REST-based APIs from scratchIn DetailPython 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.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.By the end of the video, you'll have a deep understanding of the stacks needed to build RESTful web services.
- Chapter 1 : Developing RESTful APIs with Django
- The Course Overview 00:03:16
- Designing a RESTful API to Interact with a Simple SQLite Database 00:04:03
- Working with Lightweight Virtual Environments 00:03:27
- Setting Up the Virtual Environment with Django REST Framework 00:03:17
- Creating the Models 00:05:34
- Managing Serialization and Deserialization 00:08:05
- Chapter 2 : Creating Django Views
- Defining API Views 00:11:07
- Making HTTP Requests to the API 00:10:03
- Working with GUI Tools – Postman and Others 00:07:17
- Chapter 3 : Working with Class-Based Views in Django
- Using Model Serializers to Eliminate Duplicate Code 00:01:56
- Working with Wrappers to Define API Views 00:04:16
- Using the Default Parsing and Rendering Options 00:07:38
- Browsing the API 00:04:02
- Understanding the Tasks Performed by Each HTTP Method 00:04:46
- Chapter 4 : Working with Hyperlinked APIs in Django
- Declaring Relationships with the Models 00:09:01
- Managing Serialization and Deserialization with Hyperlinks 00:08:42
- Creating Class-Based Views and Using Generic Classes 00:02:11
- Working with Endpoints for the API 00:03:44
- Creating and Retrieving Related Resources 00:04:50
- Chapter 5 : Improving Authentication to an API with Django
- Adding Unique Constraints to the Models 00:03:53
- Taking Advantage of Pagination 00:07:20
- Customizing Pagination Classes 00:03:57
- Chapter 6 : Adding Authentication to an API with Django
- Understanding Authentication, Permission, and Throttling 00:03:23
- Adding Security-Related Data to the Models 00:04:39
- Creating a Customized Permission Class for Object-Level Permissions 00:04:20
- Configuring Permission Policies 00:03:57
- Composing Requests with the Necessary Authentication 00:02:46
- Browsing the API with Authentication Credentials 00:03:13
- Chapter 7 : Additional Features of Django and Django REST Framework
- Configuring Throttling Policies 00:03:28
- Testing Throttling Policies 00:02:00
- Understanding Filtering, Searching, and Ordering Classes 00:02:07
- Configuring Filtering, Searching, and Ordering for Views 00:05:06
- Testing Filtering, Searching, and Ordering 00:02:15
- Chapter 8 : Defining and Executing Unit Tests
- Setting Up Unit Tests 00:02:31
- Defining a First Round of Unit Tests 00:03:49
- Running Unit Tests and Checking Testing Coverage 00:02:35
- Improving Testing Coverage 00:03:44