Kuldeep Pisda

How to make REST APIs in Django?

Stop writing boilerplate. Build a complete REST API in Django with just a model, a serializer, and a viewset.

How to make REST APIs in Django?
#1about 8 minutes

Understanding the fundamentals of REST API design

REST provides a standardized set of guidelines for creating web APIs using common HTTP methods like GET, POST, PUT, and DELETE.

#2about 6 minutes

Introducing the core concepts of Django REST Framework

Django REST Framework (DRF) simplifies API development with key components like serializers, routers, viewsets, and permission classes.

#3about 6 minutes

Serializing Django models into JSON with ModelSerializer

The ModelSerializer class in DRF automatically converts complex data types, like Django model instances, into native Python datatypes that can be rendered as JSON.

#4about 6 minutes

Building CRUD endpoints quickly with ViewSets and Routers

Using ModelViewSet and a router allows you to automatically generate a complete set of CRUD endpoints for a model with just a few lines of code.

#5about 11 minutes

Implementing permissions and custom authorization logic

Secure endpoints by using built-in permission classes or creating custom logic with `has_permission` and `has_object_permission` to control access.

#6about 10 minutes

Customizing API responses based on user roles

Override the `get_queryset` and `get_serializer_class` methods in a ViewSet to dynamically change the data and fields returned based on the user's permissions.

#7about 4 minutes

Customizing the Django Admin for better data management

The built-in Django admin can be customized to improve usability with features like custom list displays, search fields, and filters.

#8about 5 minutes

Q&A on starting a developer career and hackathons

The speaker shares personal experiences about getting into tech, the motivation to create, and tips for participating in hackathons.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
DC
Daniel Cranney
The State of WebDev AI 2025 Results: What Can We Learn?
Introduction The 2025 edition of The State of WebDev AI offers a detailed snapshot of how developers are using AI today, which tools have gained the most traction over the past year, and what these trends suggest about the future of the industry. In...
The State of WebDev AI 2025 Results: What Can We Learn?
CH
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take part
Starting with this week's Web Dev Day edition of WeAreDevelopers LIVE Days, we changed the the way we run these online conferences. The main differences are:Shorter talks (half an hour tops)More interaction in Q&AA tips and tricks "Did you know" sect...
WeAreDevelopers LIVE days are changing - get ready to take part
BR
Benjamin Ruschin
What Developers Really Need to Create Great Code Demos
Every developer on earth has, at some point, had another developer to thank for a breakthrough, a success, an aha moment they wouldn’t have had without coming across that blog post, that open-source contribution, that reply on socials or that humble ...
What Developers Really Need to Create Great Code Demos
CH
Chris Heilmann
With AIs wide open - WeAreDevelopers at All Things Open 2025
Last week our VP of Developer Relations, Chris Heilmann, flew to Raleigh, North Carolina to present at All Things Open . An excellent event he had spoken at a few times in the past and this being the “Lucky 13” edition, he didn’t hesitate to come and...
With AIs wide open - WeAreDevelopers at All Things Open 2025

From learning to earning

Jobs that call for the skills explored in this talk.

Python Developer

Python Developer

LiveLink
Havant, United Kingdom

Remote
C++
GIT
Linux
NumPy
+3