How to hide Some API in django rest swagger?

Viewed 2106

I have to API end point one is product and another is price, I want to hide price API from swagger documentation. How will i achieve this?

urlpatterns = [
url(r'^v1/products', include('project.products.v1.product_urls')),
url(r'^v1/price', include('project.products.v1.price_urls')), ]
1 Answers

use swagger_schema = None, order to exclude the view from schema generation.

Related