MCPcopy
hub / github.com/encode/django-rest-framework / url_path_detail

Method url_path_detail

tests/test_routers.py:97–100  ·  view source on GitHub ↗
(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

95
96 @action(detail=True, url_path='detail/<int:kwarg>')
97 def url_path_detail(self, request, *args, **kwargs):
98 pk = self.kwargs.get('pk', '')
99 kwarg = self.kwargs.get('kwarg', '')
100 return Response({'pk': pk, 'kwarg': kwarg})
101
102 @action(detail=True, url_path='detail/<int:kwarg>/detail/<int:param>')
103 def url_path_detail_multiple_params(self, request, *args, **kwargs):

Callers

nothing calls this directly

Calls 2

ResponseClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected