django-rest-framework-docs icon indicating copy to clipboard operation
django-rest-framework-docs copied to clipboard

generate wrong data-path (API urls)

Open hexxter opened this issue 8 years ago • 3 comments

I have made the rule in the url.py url(r'^docs/', include('rest_framework_docs.urls', namespace='docs')),

and i can server the doc app but all links are wrong:

/docs/api/notes/uid/add but it should be /api/notes/uid/add

the rest is working great. Thank you for your good work.

django 1.10.5 drf 3.5.3 drf docs 0.0.11

hexxter avatar Feb 15 '17 16:02 hexxter

Don't you have other codes on above lines?

xncbf avatar Feb 20 '17 06:02 xncbf

@xncbf This is actually an issue. I will paste a code snippet here to highlight this.

url(r'^api/', include(api_urls)), and api_urls can be a list of urls. In this case, the DRF Docs doesn't detects the api/ prefix

iamhssingh avatar Jun 29 '17 20:06 iamhssingh

Also experiencing this.

ckcollab avatar Aug 22 '17 19:08 ckcollab