steven
steven

Reputation: 3

django rest framework how to close Self describing APIs browsable

Like the image, I want to close The browsable API that REST framework provides.

Click to visit directly the JSON data.

enter image description here

Upvotes: 0

Views: 250

Answers (1)

mohammadjh
mohammadjh

Reputation: 722

In your settings.py file add following code in the section of REST_FRAMEWORK settings

'DEFAULT_RENDERER_CLASSES': (
    'rest_framework.renderers.JSONRenderer',
),

If you use BrowsableAPIRendereryou will see browsable API interface. JSONRenderer will show JSON data.

Upvotes: 2

Related Questions