Generate the list of URL patterns, including a default root view for the API, and appending `.json` style format suffixes.
(self)
| 373 | return self.APIRootView.as_view(api_root_dict=api_root_dict) |
| 374 | |
| 375 | def get_urls(self): |
| 376 | """ |
| 377 | Generate the list of URL patterns, including a default root view |
| 378 | for the API, and appending `.json` style format suffixes. |
| 379 | """ |
| 380 | urls = super().get_urls() |
| 381 | |
| 382 | if self.include_root_view: |
| 383 | view = self.get_api_root_view(api_urls=urls) |
| 384 | root_url = path('', view, name=self.root_view_name) |
| 385 | urls.append(root_url) |
| 386 | |
| 387 | if self.include_format_suffixes: |
| 388 | urls = format_suffix_patterns(urls) |
| 389 | |
| 390 | return urls |
nothing calls this directly
no test coverage detected