Django Rest Framework API #24 / PARTIAL UPDATE | PATCH Action | Method for ModelViewSet and ApiVie
Описание
What you will learn:
- How to override partial update and patch action | method inside Django REST Framework. -
- How to override partial update action | method inside ModelViewSet.
- How to override PATCH action | method inside ApiView.
-How to update specific fields of an object by sending the target fields only.
-Handling the KeyError of the update method.
-How to read the data that was sent through a PATCH request using (request) argument then update an object and save it in the database.
? Music : https://youtu.be/AYE8WJVF15I
Music Channel : @tuningthecode
Source code:
https://github.com/CodeEnvironment/django-rest-framework-code
Override UPDATE | PUT Action | Method:
https://www.youtube.com/watch?v=r0Y_Qp21liI&t
APIView GET & POST Request and Response:
https://www.youtube.com/watch?v=-x_Z_V9HXZE
Override Create Action | CREATE Method:
https://www.youtube.com/watch?v=4dPVywV-X84
Override Delete Action (destroy method) DELETE Request:
https://www.youtube.com/watch?v=Hi3TA2pGv7Y
ModelViewset With Serializer and Router:
https://www.youtube.com/watch?v=c-icuNefSUo
Рекомендуемые видео



















