manosim / manosim/django-rest-framework-docs
api endpoint does not display properly
- Dominant language
- Python
- Stars
- 641
- Forks
- 178
- PR merge metrics
- No merged PRs in 30d
Description
my drf project layout:
project:
- urls.py
api:
- urls.py
In project/urls.py I defined the url routing like:
urlpatterns = [url(r'^api/', include('api.urls', namespace='api')),
url(r'^api-token-auth/', views.obtain_token),]
on the drf web page, it gives me api/api-token-auth as the endpoint but it should be api-token-auth/. Hope this issue can be quickly fixed. thanks!
Contributor guide
Research direction
Start with the URL declarations in project/urls.py and api/urls.py, then reproduce the endpoint listing in the DRF web page. Compare the displayed path with the configured api-token-auth/ route; the issue is done when the page no longer prefixes that endpoint with api/.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100