{"action":"closed","issue":{"url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/560","repository_url":"https://api.github.com/repos/spring-projects/spring-restdocs","labels_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/560/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/560/comments","events_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/560/events","html_url":"https://github.com/spring-projects/spring-restdocs/issues/560","id":374565147,"node_id":"MDU6SXNzdWUzNzQ1NjUxNDc=","number":560,"title":"URL special characters are encoded in generated docs","user":{"login":"Odyldzhon","id":6079835,"node_id":"MDQ6VXNlcjYwNzk4MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/6079835?v=4","gravatar_id":"","url":"https://api.github.com/users/Odyldzhon","html_url":"https://github.com/Odyldzhon","followers_url":"https://api.github.com/users/Odyldzhon/followers","following_url":"https://api.github.com/users/Odyldzhon/following{/other_user}","gists_url":"https://api.github.com/users/Odyldzhon/gists{/gist_id}","starred_url":"https://api.github.com/users/Odyldzhon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Odyldzhon/subscriptions","organizations_url":"https://api.github.com/users/Odyldzhon/orgs","repos_url":"https://api.github.com/users/Odyldzhon/repos","events_url":"https://api.github.com/users/Odyldzhon/events{/privacy}","received_events_url":"https://api.github.com/users/Odyldzhon/received_events","type":"User","site_admin":false},"labels":[{"id":182706661,"node_id":"MDU6TGFiZWwxODI3MDY2NjE=","url":"https://api.github.com/repos/spring-projects/spring-restdocs/labels/status:%20waiting-for-feedback","name":"status: waiting-for-feedback","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-10-26T22:15:59Z","updated_at":"2018-10-30T16:39:11Z","closed_at":"2018-10-30T16:39:11Z","author_association":"NONE","body":"Thank you for this wonderful project!\r\n\r\nI have a case where URL have field with special characters ([RSQL](https://github.com/jirutka/rsql-parser)), for example:\r\n`http://tv/1/movies?query=director.lastName==Nolan and year>=2000`\r\n\r\nIn a generated document all special characters will be encoded and the query becomes unreadable.\r\nIt happens because the method below encode special characters `org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.get(urlTemplate , urlVariables)`.\r\n\r\nThis is how it looks in test for url=\"tv/{id}/movies?query=director.lastName==Nolan and year>=2000\"\r\n```java\r\n.mockMvc\r\n        .perform(get(url, 1)\r\n        ...\r\n        .andDo(generateDoc())\r\n```\r\n\r\nIs there any solution or at least workaround to decode the URL for generated document?"}}
{"actor":{"display_login":"wilkinsona"}}