{"action":"created","issue":{"url":"https://api.github.com/repos/alanjds/drf-nested-routers/issues/52","repository_url":"https://api.github.com/repos/alanjds/drf-nested-routers","labels_url":"https://api.github.com/repos/alanjds/drf-nested-routers/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/alanjds/drf-nested-routers/issues/52/comments","events_url":"https://api.github.com/repos/alanjds/drf-nested-routers/issues/52/events","html_url":"https://github.com/alanjds/drf-nested-routers/issues/52","id":106102674,"number":52,"title":"Remove trailing slash in nested resources","user":{"login":"L3K0V","id":2267270,"avatar_url":"https://avatars.githubusercontent.com/u/2267270?v=3","gravatar_id":"","url":"https://api.github.com/users/L3K0V","html_url":"https://github.com/L3K0V","followers_url":"https://api.github.com/users/L3K0V/followers","following_url":"https://api.github.com/users/L3K0V/following{/other_user}","gists_url":"https://api.github.com/users/L3K0V/gists{/gist_id}","starred_url":"https://api.github.com/users/L3K0V/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/L3K0V/subscriptions","organizations_url":"https://api.github.com/users/L3K0V/orgs","repos_url":"https://api.github.com/users/L3K0V/repos","events_url":"https://api.github.com/users/L3K0V/events{/privacy}","received_events_url":"https://api.github.com/users/L3K0V/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2015-09-11T22:04:41Z","updated_at":"2016-09-26T17:51:17Z","closed_at":"2015-09-11T23:13:13Z","body":"Is there any way to disable trailing slash for nested resources?\r\n\r\n\r\nThis is my patterns:\r\n```\r\n1. ^api/ ^$ [name='api-root']\r\n2. ^api/ ^\\.(?P<format>[a-z0-9]+)/?$ [name='api-root']\r\n3. ^api/ ^members$ [name='member-list']\r\n4. ^api/ ^members\\.(?P<format>[a-z0-9]+)/?$ [name='member-list']\r\n5. ^api/ ^members/(?P<pk>[^/]+)$ [name='member-detail']\r\n6. ^api/ ^members/(?P<pk>[^/]+)\\.(?P<format>[a-z0-9]+)/?$ [name='member-detail']\r\n7. ^api/ ^courses$ [name='courses-list']\r\n8. ^api/ ^courses\\.(?P<format>[a-z0-9]+)/?$ [name='courses-list']\r\n9. ^api/ ^courses/(?P<pk>[^/]+)$ [name='courses-detail']\r\n10. ^api/ ^courses/(?P<pk>[^/]+)\\.(?P<format>[a-z0-9]+)/?$ [name='courses-detail']\r\n11. ^api/ ^courses/(?P<course_pk>[^/]+)/memberships/$ [name='memberships-list']\r\n12. ^api/ ^courses/(?P<course_pk>[^/]+)/memberships/(?P<pk>[^/]+)/$ [name='memberships-detail']\r\n\r\n...\r\n```\r\n\r\nTake a look for example at **7** and then at nested **11**\r\n\r\nAnd urls.py:\r\n```\r\n...\r\n\r\nrouter = routers.DefaultRouter(trailing_slash=False)\r\nrouter.register(r'members', MemberViewSet)\r\nrouter.register(r'courses', CourseViewSet, base_name='courses')\r\n\r\ncourses_router = routers.NestedSimpleRouter(router, r'courses', lookup='course')\r\ncourses_router.register(r'memberships', MembershipViewSet, base_name='memberships')\r\n\r\n...\r\n\r\nurlpatterns = [\r\n    url(r'^api/', include(router.urls, namespace='api')),\r\n    url(r'^api/', include(courses_router.urls, namespace='api')),\r\n]\r\n```"},"comment":{"url":"https://api.github.com/repos/alanjds/drf-nested-routers/issues/comments/249644552","html_url":"https://github.com/alanjds/drf-nested-routers/issues/52#issuecomment-249644552","issue_url":"https://api.github.com/repos/alanjds/drf-nested-routers/issues/52","id":249644552,"user":{"login":"L3K0V","id":2267270,"avatar_url":"https://avatars.githubusercontent.com/u/2267270?v=3","gravatar_id":"","url":"https://api.github.com/users/L3K0V","html_url":"https://github.com/L3K0V","followers_url":"https://api.github.com/users/L3K0V/followers","following_url":"https://api.github.com/users/L3K0V/following{/other_user}","gists_url":"https://api.github.com/users/L3K0V/gists{/gist_id}","starred_url":"https://api.github.com/users/L3K0V/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/L3K0V/subscriptions","organizations_url":"https://api.github.com/users/L3K0V/orgs","repos_url":"https://api.github.com/users/L3K0V/repos","events_url":"https://api.github.com/users/L3K0V/events{/privacy}","received_events_url":"https://api.github.com/users/L3K0V/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T17:51:17Z","updated_at":"2016-09-26T17:51:17Z","body":"Did you try using ` routers.DefaultRouter` instead of `routers.SimpleRouter` from this package?"}}
{"actor":{"display_login":"L3K0V"}}