{"action":"closed","issue":{"url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/issues/342","repository_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger","labels_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/issues/342/comments","events_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/issues/342/events","html_url":"https://github.com/marcgibbons/django-rest-swagger/issues/342","id":100742480,"number":342,"title":"Wrongly recognized Django url pattern","user":{"login":"shnela","id":3773836,"avatar_url":"https://avatars.githubusercontent.com/u/3773836?v=3","gravatar_id":"","url":"https://api.github.com/users/shnela","html_url":"https://github.com/shnela","followers_url":"https://api.github.com/users/shnela/followers","following_url":"https://api.github.com/users/shnela/following{/other_user}","gists_url":"https://api.github.com/users/shnela/gists{/gist_id}","starred_url":"https://api.github.com/users/shnela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shnela/subscriptions","organizations_url":"https://api.github.com/users/shnela/orgs","repos_url":"https://api.github.com/users/shnela/repos","events_url":"https://api.github.com/users/shnela/events{/privacy}","received_events_url":"https://api.github.com/users/shnela/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-08-13T11:13:32Z","updated_at":"2016-07-18T00:43:31Z","closed_at":"2016-07-18T00:43:31Z","body":"Below description is copied from [my stackoverflow post][1].\r\n\r\n  [1]: http://stackoverflow.com/questions/31797515/swagger-ui-wrongly-recognized-django-url-pattern\r\n\r\n## Intorudction ##\r\n\r\nI've implemented rest API using `django-rest-framework`.\r\n\r\nI've decided to implement batch operations, where ids were neccessary, in two ways:\r\n\r\n 1. By sending ids in url, separated with '/':\r\n\r\n        url(r'^tubes/(?P<ids>(([0-9]+/)+))$', manage_tubes, name='manage_tubes'),\r\n    Example request:\r\n    >http://127.0.0.1:8000/tubes/0/1/10/\r\n\r\n\r\n 2. By sending ids in POST body as a json array:\r\n\r\n        url(r'^tubes/(?P<operation>(create|delete|get))/$', manage_tubes_json, name='manage_tubes_json'),\r\n    Example request:\r\n    >http://127.0.0.1:8000/tubes/get\r\n\r\n    with following body:\r\n    >[0, 1, 10]\r\n\r\nThis works well, but I've problem with `django-rest-swagger`. Actually with `swagger UI`.\r\n\r\n## Problem ##\r\n\r\nSwagger didn't recognized my url patterns very well...\r\n\r\nIt sees urls as follows:\r\n\r\n  1. >/tubes/{ids}+))\r\n\r\n     (redundant '+))' )\r\n  2. >POST /tubes/{operation})/\r\n\r\n     (redundant ')' )\r\n\r\nIs my `urls.py` file incorrect or maybe I should define url paramters somehow?"}}
{"actor":{"display_login":"marcgibbons"}}