# DRF Built-in API documentation

**URL:** <https://forum.djangoproject.com/t/drf-built-in-api-documentation/7057>\
**Category:** Using Django\
**Created:** [March 15, 2021, 11:54am UTC](https://forum.djangoproject.com/t/drf-built-in-api-documentation/7057 "2021-03-15T11:54:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BartoszMaslanka](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/bartoszmaslanka/32/3818_2.png) [@BartoszMaslanka](https://forum.djangoproject.com/u/BartoszMaslanka)\
**Post date:** [March 15, 2021, 11:54am UTC](https://forum.djangoproject.com/t/drf-built-in-api-documentation/7057/1 "2021-03-15T11:54:02Z")

</div>

Hi,  
I’m using in my project [From documenting your api - Django REST framework](https://www.django-rest-framework.org/coreapi/from-documenting-your-api/) to create documentation.  
My urls.py file looks like

router = routers.DefaultRouter()  
router.register(r’v1/clients’, views.ClientsSgView)

router.register(r’v1/currency’, views.CurrencyView)  
router.register(r’v1/base-rates/floating’, views.RefiView)  
router.register(r’v1/base-rates/fixed’, views.FixView)  
router.register(r’v1/upload\_data’, views.OfferQtView)

urlpatterns = [  
path(‘admin/’, admin.site.urls),  
path(‘api/’, include(router.urls)),  
path(‘api-auth’, include(‘rest\_framework.urls’, namespace=‘rest\_framework’)),  
path(‘api-token-auth/’, jwt\_views.TokenObtainPairView.as\_view(), name=‘token\_obtain\_pair’),  
path(‘api-token-auth/refresh/’, jwt\_views.TokenRefreshView.as\_view(), name=‘token\_refresh’),  
path(‘doc/’, include\_docs\_urls(title=“Sgelp - API v 1.0”, permission\_classes=[AllowAny,], authentication\_classes=[], public=False)),

]

I would like to create two separately documentation. In first would be only one service  
router.register(r’v1/clients’, views.ClientsSgView)

and in the second rest urls.

is it feasible?

Can I hide urls which have {ID} e.g.:

 ![img](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/2X/c/c26bd89eab810dd07eb096ad2a381f89ec9d6258.png)

---

<div class="post-metadata">

**Author:** ![marcorichetta](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/marcorichetta/32/26473_2.png) [@marcorichetta](https://forum.djangoproject.com/u/marcorichetta)\
**Post date:** [March 16, 2021, 3:09pm UTC](https://forum.djangoproject.com/t/drf-built-in-api-documentation/7057/2 "2021-03-16T15:09:40Z")

</div>

> [@BartoszMaslanka](#):
>
> include\_docs\_urls

I think the argument `url_conf` in `include_docs_urls()` allows you to specify the urls.py to use.

> <https://github.com/encode/django-rest-framework/blob/a40bce50cda95652afd822d69d91a67b78bc05b0/rest_framework/documentation.py#L56>

### Example

```bash
project
└── urls.py
app1
└── urls.py
app2
└── urls.py

```

```py
# project/urls.py
path("app1/", include_docs_urls(title=“API 1”, url_conf="app1.urls", ...),
path("app2/", include_docs_urls(title=“API 2”, url_conf="app2.urls", ...),

```
