Back to Browse

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

10.0K views
Oct 28, 2024
17:59

โ˜•๏ธ ๐—•๐˜‚๐˜† ๐—บ๐—ฒ ๐—ฎ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ: 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 formats

No download links available.

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