Class Based Views in Django Rest API- Chapter 6

Опубликовано: 16 Февраль 2026
на канале: IamPython
3,482
51

In this video, we are discussing Class-based views in Django Rest Framework. Serializing all the products from the database by extending APIView class and using the get method. We can also display specific products (Detailed View) using get with parameters through Django URL.

Types of Views
1. Function Based Views - @api_view([‘GET', 'POST'])
2. Class Based - class ClassName(APIView):
3. Generic Views - class ClassName(generics.ListCreateAPIView):
4. ViewSets - class UserViewSet(viewsets.ViewSet):
5. Mixins


✺ Previous Django Rest framework Videos :

♂ Django Rest Framework - Introduction Video - Chapter 1
   • Python REST API - Django Rest Framework Tu...  

♂ Django Rest Framework Tutorial -Installation and Setup -Chapter 2
   • Installing Django Rest Framework -Chapter 2  

♂ Django Rest Framework Tutorial -Serializers -Chapter 3
   • Create Serializers in Django Rest Framewor...  

♂Django Rest Framework Tutorial -How to Serialize the Data without Model ?-Chapter 4
   • Serialize Data without Django Model -Chapt...  

♂Types of Views in Django Rest Framework -Chapter 5
   • Views in Django Rest Framework -Chapter 5  


Official website :
https://www.django-rest-framework.org

🎥 Django Tutorial - Health Insurance Claim Project
   • Django Tutorial - Building Web apps in Python  

🎤 Good Tech Talks Playlist
   • My Tech Talk  

◉ Watch other AI videos

♂DataScience Dialogue - Open Source GPU DataScience #1
   • Open Source Accelerated GPU DataScience  #1  ​​
♂DataScience Dialogue - AutoML and DataRobot Demo #2
   • DataRobot  For AutoML |  AI Robot Demo | N...  ​​
♂DataScience Dialogue - Machine Learning & NLP Best Practices #3
   • Best Practices of Machine Learning  & Natu...  

📱Please join in 🎭 Our Social Networking platforms🎭 for quick updates
————————————————-
🎣 Facebook :   / ​​​​  
🎣 Instagram :   / ​​​​  
🎣 Twitter:   / ​​​​  
🎣 LinkedIn :   / iamp​​​​.  .
🎣 Telegram : https://t.me/iampythoner​​​​

#pythonapi #django #djangorestframework