Django REST Framework - Creating Data | ListCreateAPIView and Generic View Internals

Описание к видео Django REST Framework - Creating Data | ListCreateAPIView and Generic View Internals

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes

⭐Top resource to learn Python - https://datacamp.pxf.io/kOjKkV ⭐

In this video, we'll look at how to consolidate GET and POST requests to the same endpoint, to list out and create products. We'll see the CreateAPIView initially, and will look at the ListCreateAPIView for consolidating the two operations. We'll also take a look at the internals of these generic views, and how mixins add list() and create() methods to perform the associated logic.

Starter Code: https://github.com/bugbytes-io/drf-co...

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
01:46 Creating data with CreateAPIView
06:56 Consolidating List and Create operations with ListCreateAPIView

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/drf-co...
🐦 Twitter:   / bugbytesio  

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Starter Code: https://github.com/bugbytes-io/drf-co...
Generic Views: https://www.django-rest-framework.org...
Classy DRF: https://www.cdrf.co/

#python #django #webdevelopment #djangorestframework

Комментарии

Информация по комментариям в разработке