1

I am currently documenting the API I have created for an app.

I'm using the built in documentation system that comes with Django Rest Framework and coreapi (as described here).

class MyAPI(APIView):

    schema = ManualSchema(fields=[coreapi.Field(...), ...],
                          description='Describe this view')

I set up the url for the docs in the urls.py for the API app:

url_patterns = [
    url(r'^docs/', include_docs_urls('My API Title')),
    ...
]

The problem I have is that when I visit the docs I see the admin API docs alongside my API docs.

I've tried using the answer to this question:

REST_FRAMEWORK = {
    'DEFAULT_RENDERER_CLASSES': (
        'rest_framework.renderers.JSONRenderer',
    )
}

But the admin docs still show up.

Is there a way to hide the admin docs?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.