Django REST Framework CRUD API Tutorial | Function Based Views (@api_view) Explained with Example

Published: 20 December 2025
on channel: Swarup Kumar Saha
124
5

In this video, we will build a complete CRUD REST API using Django REST Framework (DRF) by using Function Based Views (FBV) and the @api_view decorator.

This tutorial is ideal for beginners who want to clearly understand how REST APIs work internally in Django without jumping directly into ViewSets or ModelViewSets.

🔹 What you will learn in this video:
How @api_view works in Django REST Framework
Creating REST APIs using Function Based Views
Handling HTTP methods: POST, GET, PUT, PATCH, DELETE
How request data flows through DRF
Using ModelSerializer to convert Django models into JSON
Understanding request.data vs ORM QuerySets
Difference between PUT and PATCH
Manual URL mapping using urlpatterns
End-to-end CRUD API implementation
How serializers convert model objects into JSON responses
Real-world API structure explained step by step

🔹 APIs implemented in this tutorial:
Register Customer (POST)
Display All Customers (GET)
Update Customer using PATCH
Update Customer using PUT
Delete Customer (DELETE)

🔹 Tech Stack Used:
Python
Django
Django REST Framework (DRF)
Function Based Views
Serializers
REST API Architecture

This video builds a strong foundation before moving to Class Based Views, ViewSets, and ModelViewSets, making it perfect for students, freshers, and working professionals learning backend development.


On this page of the site you can watch the video online Django REST Framework CRUD API Tutorial | Function Based Views (@api_view) Explained with Example with a duration of hours minute second in good quality, which was uploaded by the user Swarup Kumar Saha 20 December 2025, share the link with friends and acquaintances, this video has already been watched 124 times on youtube and it was liked by 5 viewers. Enjoy your viewing!