{"action":"created","issue":{"url":"https://api.github.com/repos/alanjds/drf-nested-routers/issues/70","repository_url":"https://api.github.com/repos/alanjds/drf-nested-routers","labels_url":"https://api.github.com/repos/alanjds/drf-nested-routers/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/alanjds/drf-nested-routers/issues/70/comments","events_url":"https://api.github.com/repos/alanjds/drf-nested-routers/issues/70/events","html_url":"https://github.com/alanjds/drf-nested-routers/issues/70","id":149626537,"number":70,"title":"Nested routers do not include (?P<format>) in regex","user":{"login":"Symmetric","id":1524910,"avatar_url":"https://avatars.githubusercontent.com/u/1524910?v=3","gravatar_id":"","url":"https://api.github.com/users/Symmetric","html_url":"https://github.com/Symmetric","followers_url":"https://api.github.com/users/Symmetric/followers","following_url":"https://api.github.com/users/Symmetric/following{/other_user}","gists_url":"https://api.github.com/users/Symmetric/gists{/gist_id}","starred_url":"https://api.github.com/users/Symmetric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Symmetric/subscriptions","organizations_url":"https://api.github.com/users/Symmetric/orgs","repos_url":"https://api.github.com/users/Symmetric/repos","events_url":"https://api.github.com/users/Symmetric/events{/privacy}","received_events_url":"https://api.github.com/users/Symmetric/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-20T01:23:00Z","updated_at":"2016-04-20T14:58:36Z","closed_at":null,"body":"Here's an example excerpt of some normal ViewSet URL from Django 1.9.1:\r\n\r\n```\r\n^ ^users/$ [name='user-list']\r\n^ ^users\\.(?P<format>[a-z0-9]+)/?$ [name='user-list']\r\n```\r\nThis allows the URL `/users.csv/` if a CSV formatter has been installed.\r\n\r\nAn equivalent url generated by drf-nested-routers:\r\n\r\n```\r\n^ ^users/(?P<user_pk>[^/.]+)/accounts/$ [name='user-account-list']\r\n```\r\nThere is no entry containing the (?P<format>) regex that is required to support view formatters.\r\n\r\nIs this a known missing feature, a bug, or a misconfiguration on my part? It's not clear from my reading of the docs how to get the format URLs."},"comment":{"url":"https://api.github.com/repos/alanjds/drf-nested-routers/issues/comments/212462637","html_url":"https://github.com/alanjds/drf-nested-routers/issues/70#issuecomment-212462637","issue_url":"https://api.github.com/repos/alanjds/drf-nested-routers/issues/70","id":212462637,"user":{"login":"alanjds","id":155623,"avatar_url":"https://avatars.githubusercontent.com/u/155623?v=3","gravatar_id":"","url":"https://api.github.com/users/alanjds","html_url":"https://github.com/alanjds","followers_url":"https://api.github.com/users/alanjds/followers","following_url":"https://api.github.com/users/alanjds/following{/other_user}","gists_url":"https://api.github.com/users/alanjds/gists{/gist_id}","starred_url":"https://api.github.com/users/alanjds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanjds/subscriptions","organizations_url":"https://api.github.com/users/alanjds/orgs","repos_url":"https://api.github.com/users/alanjds/repos","events_url":"https://api.github.com/users/alanjds/events{/privacy}","received_events_url":"https://api.github.com/users/alanjds/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T14:58:36Z","updated_at":"2016-04-20T14:58:36Z","body":"Hi.\n\nI really dont know. I had not looked at the code, but remember to just pass\none DRF router into another, so is not up to NestedRouters to do the job.\n\nPlease let us know if I am wrong.\nThanks.\nOn Apr 19, 2016 10:23 PM, \"Paul Tiplady\" <notifications@github.com> wrote:\n\n> Here's an example excerpt of some normal ViewSet URL from Django 1.9.1:\n>\n> ^ ^users/$ [name='user-list']\n> ^ ^users\\.(?P<format>[a-z0-9]+)/?$ [name='user-list']\n>\n> This allows the URL /users.csv/ if a CSV formatter has been installed.\n>\n> An equivalent url generated by drf-nested-routers:\n>\n> ^ ^users/(?P<user_pk>[^/.]+)/accounts/$ [name='user-account-list']\n>\n> There is no entry containing the (?P) regex that is required to support\n> view formatters.\n>\n> Is this a known missing feature, a bug, or a misconfiguration on my part?\n> It's not clear from my reading of the docs how to get the format URLs.\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/alanjds/drf-nested-routers/issues/70>\n>\n"}}