MCPcopy Index your code
hub / github.com/encode/django-rest-framework / post

Method post

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

Source from the content-addressed store, hash-verified

21 return Response({'method': 'GET'})
22
23 def post(self, request, *args, **kwargs):
24 return Response({'method': 'POST', 'data': request.data})
25
26
27@api_view(['GET', 'POST', 'PUT', 'PATCH'])

Calls 1

ResponseClass · 0.90

Tested by

no test coverage detected