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-course-api ๐ ๐๐ต๐ฎ๐ฝ๐๐ฒ๐ฟ๐: 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-course-api ๐ ๐๐๐ฟ๐๐ต๐ฒ๐ฟ ๐ฟ๐ฒ๐ฎ๐ฑ๐ถ๐ป๐ด ๐ฎ๐ป๐ฑ ๐ถ๐ป๐ณ๐ผ๐ฟ๐บ๐ฎ๐๐ถ๐ผ๐ป: Starter Code: https://github.com/bugbytes-io/drf-course-api Generic Views: https://www.django-rest-framework.org/api-guide/generic-views/ Classy DRF: https://www.cdrf.co/ #python #django #webdevelopment #djangorestframework
Download
0 formatsNo download links available.