{"action":"created","issue":{"url":"https://api.github.com/repos/springdox/springdox/issues/608","labels_url":"https://api.github.com/repos/springdox/springdox/issues/608/labels{/name}","comments_url":"https://api.github.com/repos/springdox/springdox/issues/608/comments","events_url":"https://api.github.com/repos/springdox/springdox/issues/608/events","html_url":"https://github.com/springdox/springdox/issues/608","id":60747930,"number":608,"title":"@ApiResponses does not generate a \"responses:\" section in the swagger 2.0 api-docs","user":{"login":"mrwanny","id":984353,"avatar_url":"https://avatars.githubusercontent.com/u/984353?v=3","gravatar_id":"","url":"https://api.github.com/users/mrwanny","html_url":"https://github.com/mrwanny","followers_url":"https://api.github.com/users/mrwanny/followers","following_url":"https://api.github.com/users/mrwanny/following{/other_user}","gists_url":"https://api.github.com/users/mrwanny/gists{/gist_id}","starred_url":"https://api.github.com/users/mrwanny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrwanny/subscriptions","organizations_url":"https://api.github.com/users/mrwanny/orgs","repos_url":"https://api.github.com/users/mrwanny/repos","events_url":"https://api.github.com/users/mrwanny/events{/privacy}","received_events_url":"https://api.github.com/users/mrwanny/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/springdox/springdox/labels/question","name":"question","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-11T23:34:07Z","updated_at":"2015-03-16T16:57:23Z","closed_at":"2015-03-16T16:57:23Z","body":"I cannot figure out why @ApiResponses does not generate a \"responses:\" section in the swagger 2.0 api-docs\r\nfor example if I annotate a  method with \r\n@ApiOperation(value = \"adds 2 numbers\",httpMethod = \"GET\",response = String.class)\r\n@ApiResponses(value = {@ApiResponse(code = 200, message = \"sum\", response = Result.class)})\r\npublic Result add(@ApiParam(value = \"a\", required = true, defaultValue = \"0\")   @RequestParam(\"a\")Double a, @ApiParam(value = \"b\", required = true, defaultValue = \"0\") @RequestParam(\"b\" )Double b) {\r\n\t\tResult res = new Result();\r\n\t\tres.setResult(a+b);\r\n\t\treturn res;\r\n\t}\r\nwhere Result looks like\r\n@ApiModel(description = \"result of an Operation\")\r\npublic class Result {\r\n    @ApiModelProperty(required = true)\r\n    @JsonProperty(\"result\")\r\n    public Double getResult() {\r\n        return result;\r\n    }\r\n   ...\r\n the api-docs does not contain the \"responses\": section\r\n\"paths\": {\r\n    \"/calculator/add\": {\r\n      \"get\": {\r\n        \"summary\": \"adds 2 numbers\",\r\n        \"parameters\": [\r\n          {\r\n            \"name\": \"a\", \"in\": \"query\",  \"description\": \"a\", \"required\": true, \"type\": \"number\",\"default\": \"0\",\"format\": \"double\"\r\n          },\r\n          {\r\n            \"name\": \"b\", \"in\": \"query\", \"description\": \"b\",\"required\": true,\"type\": \"number\", \"default\": \"0\",\"format\": \"double\"\r\n          }\r\n        ]\r\n      }\r\n    },"},"comment":{"url":"https://api.github.com/repos/springdox/springdox/issues/comments/81804978","html_url":"https://github.com/springdox/springdox/issues/608#issuecomment-81804978","issue_url":"https://api.github.com/repos/springdox/springdox/issues/608","id":81804978,"user":{"login":"mrwanny","id":984353,"avatar_url":"https://avatars.githubusercontent.com/u/984353?v=3","gravatar_id":"","url":"https://api.github.com/users/mrwanny","html_url":"https://github.com/mrwanny","followers_url":"https://api.github.com/users/mrwanny/followers","following_url":"https://api.github.com/users/mrwanny/following{/other_user}","gists_url":"https://api.github.com/users/mrwanny/gists{/gist_id}","starred_url":"https://api.github.com/users/mrwanny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrwanny/subscriptions","organizations_url":"https://api.github.com/users/mrwanny/orgs","repos_url":"https://api.github.com/users/mrwanny/repos","events_url":"https://api.github.com/users/mrwanny/events{/privacy}","received_events_url":"https://api.github.com/users/mrwanny/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T16:57:23Z","updated_at":"2015-03-16T16:57:23Z","body":"Yes, It works nicely now! Thanks a lot for the help"}}