class documentation
class DefaultRouter(SimpleRouter): (source)
The default router extends the SimpleRouter, but also adds in a default API root view, and adds format suffix patterns to the URLs.
Method | __init__ |
Undocumented |
Method | get |
Return a basic root view. |
Method | get |
Generate the list of URL patterns, including a default root view for the API, and appending `.json` style format suffixes. |
Class Variable | default |
Undocumented |
Class Variable | include |
Undocumented |
Class Variable | include |
Undocumented |
Class Variable | root |
Undocumented |
Instance Variable | root |
Undocumented |
Inherited from SimpleRouter
:
Method | get |
If `basename` is not specified, attempt to automatically determine it from the viewset. |
Method | get |
Given a viewset, return the portion of URL regex that is used to match against a single instance. |
Method | get |
Given a viewset, and a mapping of http methods to actions, return a new mapping which only includes any mappings that are actually implemented by the viewset. |
Method | get |
Augment `self.routes` with any dynamically generated routes. |
Class Variable | routes |
Undocumented |
Instance Variable | trailing |
Undocumented |
Method | _get |
Undocumented |
Inherited from BaseRouter
(via SimpleRouter
):
Method | register |
Undocumented |
Instance Variable | registry |
Undocumented |
Property | urls |
Undocumented |