I am using the Django REST Framework v3.6 built-in online documentation django_rest_framework.documentation
( not django-rest-swagger
).
Basically, I follow the official documentation and use this in my URLset configuration:
from rest_framework.documentation import include_docs_urls
urlpatterns = [
url(r"^", include_docs_urls(title="My API")),
...
]
Everything seems to work and I have a nice interactive documentation page, but I have ViewSet
with lookup_field = "slug"
, and one thing about the generated documentation bothers me:
I want to get some useful information that this description, for example, "a unique, constantly assigned alphanumeric identifier" or something on this list, but can not find any documentation where this data comes from.
, . docstrings , . slug -- here goes the description
docstring, - Markdown.
... :