manosim / manosim/django-rest-framework-docs

api endpoint does not display properly

Open
#109 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.