Can i use get, post, update, delete in a class?
I have a view like this in django:
class MedicineOperation(View):
def get(self, request, shop_id, *args, **kwargs):
pass
def post(self, request, shop_id, **args, **kwargs):
pass
def update(self, request, id, shop_id, *args, **kwargs):
pass
def delete(self, request, id, shop_id, *args, **kwargs):
pass
Can i use these method like this ?