We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b683cd7 commit b0521a5Copy full SHA for b0521a5
tests/test_schemas.py
@@ -45,7 +45,7 @@ class ExampleViewSet(ModelViewSet):
45
def custom_action(self, request, pk):
46
return super(ExampleSerializer, self).retrieve(self, request)
47
48
- @list_route()
+ @list_route(methods=['get', 'post'])
49
def custom_list_action(self, request):
50
return super(ExampleViewSet, self).list(self, request)
51
@@ -99,6 +99,10 @@ def test_anonymous_request(self):
99
url='/example/custom_list_action/',
100
action='get'
101
),
102
+ 'custom_list_action': coreapi.Link(
103
+ url='/example/custom_list_action/',
104
+ action='post'
105
+ ),
106
'retrieve': coreapi.Link(
107
url='/example/{pk}/',
108
action='get',
0 commit comments