Reputation: 3
Like the image, I want to close The browsable API that REST framework provides
.
Click to visit directly the JSON data.
Upvotes: 0
Views: 250
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 BrowsableAPIRenderer
you will see browsable API interface. JSONRenderer
will show JSON data.
Upvotes: 2