In this video I show you how to build apis with the django rest framework in 1 hour.
Building APIs with the Django Rest Framework(DRF) can be a little intimidating at first. The purpose of this video is to explain the most used concepts to build a simple API and show you how to go about creating one.
Django REST framework is a powerful and flexible toolkit for building Web APIs.
Some reasons you might want to use REST framework:
The Web browsable API is a huge usability win for your developers.
Authentication policies including packages for OAuth1a and OAuth2.
Serialization that supports both ORM and non-ORM data sources.
Customizable all the way down - just use regular function-based views if you don't need the more powerful features.
Extensive documentation, and great community support.
Used and trusted by internationally recognized companies including Mozilla, Red Hat, Heroku, and Eventbrite.
[Github]
https://github.com/the-kodechamp/engl...
[Time Stamps]
00:00:00 Creating a Github Repository (Windows)
00:06:06 Creating a Github Repository (Mac)
00:11:14 Installing Git on Windows
00:13:32 Installing Git on Mac
00:16:43 Cloning the Repository to Local Machine
00:18:06 Setting up the Virtual Environment
00:23:35 Creating the Project
00:26:39 Creating the Model
00:31:17 Serializers
00:34:28 APIViews - Get Request
00:39:35 APIViews - Post
00:42:23 Adding Permissions
00:46:35 Generic Views
00:53:31 Code Challenge
00:55:22 Viewsets
00:59:41 Custom Viewsets
01:02:58 Next Steps