{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/370","repository_url":"https://api.github.com/repos/spring-projects/spring-restdocs","labels_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/370/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/370/comments","events_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/370/events","html_url":"https://github.com/spring-projects/spring-restdocs/issues/370","id":215767157,"number":370,"title":"PathVariable name gets replaced with Value in Asciidoc","user":{"login":"vspatel","id":12063322,"avatar_url":"https://avatars1.githubusercontent.com/u/12063322?v=4","gravatar_id":"","url":"https://api.github.com/users/vspatel","html_url":"https://github.com/vspatel","followers_url":"https://api.github.com/users/vspatel/followers","following_url":"https://api.github.com/users/vspatel/following{/other_user}","gists_url":"https://api.github.com/users/vspatel/gists{/gist_id}","starred_url":"https://api.github.com/users/vspatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vspatel/subscriptions","organizations_url":"https://api.github.com/users/vspatel/orgs","repos_url":"https://api.github.com/users/vspatel/repos","events_url":"https://api.github.com/users/vspatel/events{/privacy}","received_events_url":"https://api.github.com/users/vspatel/received_events","type":"User","site_admin":false},"labels":[{"id":135858245,"url":"https://api.github.com/repos/spring-projects/spring-restdocs/labels/status:%20invalid","name":"status: invalid","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-21T14:53:59Z","updated_at":"2018-03-10T07:49:16Z","closed_at":"2017-03-21T14:58:31Z","author_association":"NONE","body":"This is a code snippet to generate documentation for endpoint /master/{message}\r\n\r\n    RestDocumentationResultHandler restDocumentationResultHandler = document(\"master\",\r\n            preprocessRequest(prettyPrint()),\r\n            preprocessResponse(prettyPrint()),\r\n            pathParameters(\r\n                    parameterWithName(\"message\").description(\"Path variable message.\")\r\n            )\r\n    );\r\n\r\n    @Test\r\n    public void checkForHi() throws Exception {\r\n        this.mockMvc.perform(post(\"/master/{message}\", \"Hello\")\r\n                .contentType(MediaType.APPLICATION_JSON_VALUE))\r\n                .andExpect(status().isOk())\r\n                .andDo(print())\r\n                .andDo(restDocumentationResultHandler);\r\n    }\r\n\r\nProblem is when plugin generates http-request.adoc it replaces /master/{message} with /master/Hello which as per my understanding is not good for documentation.\r\n\r\n<img width=\"360\" alt=\"screen shot 2017-03-21 at 9 51 29 am\" src=\"https://cloud.githubusercontent.com/assets/12063322/24153291/01a0bbf8-0e1c-11e7-8527-ed79e2ca6540.png\">\r\n\r\nIs my understanding correct? Or this is the expected output?"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/comments/372010961","html_url":"https://github.com/spring-projects/spring-restdocs/issues/370#issuecomment-372010961","issue_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/370","id":372010961,"user":{"login":"wilkinsona","id":914682,"avatar_url":"https://avatars3.githubusercontent.com/u/914682?v=4","gravatar_id":"","url":"https://api.github.com/users/wilkinsona","html_url":"https://github.com/wilkinsona","followers_url":"https://api.github.com/users/wilkinsona/followers","following_url":"https://api.github.com/users/wilkinsona/following{/other_user}","gists_url":"https://api.github.com/users/wilkinsona/gists{/gist_id}","starred_url":"https://api.github.com/users/wilkinsona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilkinsona/subscriptions","organizations_url":"https://api.github.com/users/wilkinsona/orgs","repos_url":"https://api.github.com/users/wilkinsona/repos","events_url":"https://api.github.com/users/wilkinsona/events{/privacy}","received_events_url":"https://api.github.com/users/wilkinsona/received_events","type":"User","site_admin":false},"created_at":"2018-03-10T07:49:16Z","updated_at":"2018-03-10T07:49:16Z","author_association":"MEMBER","body":"@nailgilaziev There's a suggestion in [this comment](https://github.com/spring-projects/spring-restdocs/issues/299#issuecomment-246279571)."}}
{"actor":{"display_login":"wilkinsona"}}