I am using django-rest-framework. It provides an awesome Django admin style browsable self-documenting API. But anyone can visit those pages and use the interface to add data (POST). How can I disable it?
I am using django-rest-framework . It provides an awesome Django admin style browsable self-documenting
Share
You just need to remove the browsable API renderer from your list of supported renderers for the view.
Generally:
Per-view basis:
Aside:
See also the answer below for more detail about restricting the browsable API renderer to development.