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

Method _get_dynamic_route

rest_framework/routers.py:212–224  ·  view source on GitHub ↗
(self, route, action)

Source from the content-addressed store, hash-verified

210 return routes
211
212 def _get_dynamic_route(self, route, action):
213 initkwargs = route.initkwargs.copy()
214 initkwargs.update(action.kwargs)
215
216 url_path = escape_curly_brackets(action.url_path)
217
218 return Route(
219 url=route.url.replace('{url_path}', url_path),
220 mapping=action.mapping,
221 name=route.name.replace('{url_name}', action.url_name),
222 detail=route.detail,
223 initkwargs=initkwargs,
224 )
225
226 def get_method_map(self, viewset, method_map):
227 """

Callers 1

get_routesMethod · 0.95

Calls 3

escape_curly_bracketsFunction · 0.85
copyMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected