I am using the Django REST Framework and the django-rest-swagger library to create API endpoints. I would like to group some API URLs using a custom attribute instead of a URL.
For example, I have API endpoints and you want to group them by function:
# task list management GET /api/tasks/known - get known tasks list with their parameters GET /api/tasks - get last tasks list with their statuses
Therefore, I would like to show them grouped by role. Now they have grouped everything only with '/ api /' and what it is.
In urls.py I include it like this:
url(r'^api/', include('api.urls'), name='my-api-root'),
How can I do custom grouping for django-rest-swagger?
baldr source share