MCPcopy
hub / github.com/alanjds/drf-nested-routers / get

Method get

rest_framework/tests/test_views.py:16–17  ·  view source on GitHub ↗
(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

14
15class BasicView(APIView):
16 def get(self, request, *args, **kwargs):
17 return Response({'method': 'GET'})
18
19 def post(self, request, *args, **kwargs):
20 return Response({'method': 'POST', 'data': request.DATA})

Calls 1

ResponseClass · 0.90

Tested by

no test coverage detected