Add link to API documentation generated by ReDoc.

Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
Michael Price
2018-03-13 16:33:33 -04:00
committed by Roberto Rosario
parent d173f9f863
commit 17acb444bd
2 changed files with 12 additions and 3 deletions

View File

@@ -9,6 +9,11 @@ link_api = Link(
view='rest_api:api_root'
)
link_api_documentation = Link(
icon='fa fa-book', tags='new_window', text=_('API Documentation'),
icon='fa fa-book', tags='new_window', text=_('API Documentation (Swagger)'),
view='schema-swagger-ui'
)
link_api_documentation_redoc = Link(
icon='fa fa-book', tags='new_window', text=_('API Documentation (ReDoc)'),
view='schema-redoc'
)