简体   繁体   中英

How to hide Some API in django rest swagger?

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')), ]

使用swagger_schema = None,以将视图从架构生成中排除。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM