How to use patch with (from django.views.generic import View)
What patch method do I use while creating an API with the View , (from django.views.generic import View
)
Suppose I have a class like this :
from django.views.generic import View
class ArticleView(View):
def patch(self, request, article_id, *args, **kwargs):
# How can I patch data here
pass
def get(self, request, *args, **kwargs):
pass
def put(self, request, *args, **kwargs):
pass