manosim / manosim/django-rest-framework-docs

generate wrong data-path (API urls)

Open
#156 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
641
Forks
178
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Research direction

Start with the url.py rule shown in the report and trace how the documentation app builds API links when mounted under the docs/ prefix. Reproduce the issue with Django 1.10.5, DRF 3.5.3, and drf docs 0.0.11. Done means links such as /docs/api/notes/_uid_/add resolve to /api/notes/_uid_/add without breaking the documentation page.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.