{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/5310","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/5310/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/5310/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/5310/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/5310","id":219021291,"number":5310,"title":"[Spring] Not able to provide examples in response-body","user":{"login":"elizabetht","id":5291193,"avatar_url":"https://avatars2.githubusercontent.com/u/5291193?v=3","gravatar_id":"","url":"https://api.github.com/users/elizabetht","html_url":"https://github.com/elizabetht","followers_url":"https://api.github.com/users/elizabetht/followers","following_url":"https://api.github.com/users/elizabetht/following{/other_user}","gists_url":"https://api.github.com/users/elizabetht/gists{/gist_id}","starred_url":"https://api.github.com/users/elizabetht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizabetht/subscriptions","organizations_url":"https://api.github.com/users/elizabetht/orgs","repos_url":"https://api.github.com/users/elizabetht/repos","events_url":"https://api.github.com/users/elizabetht/events{/privacy}","received_events_url":"https://api.github.com/users/elizabetht/received_events","type":"User","site_admin":false},"labels":[{"id":410530869,"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/General:%20Question","name":"General: Question","color":"66ccff","default":false},{"id":284079421,"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Server:%20Spring","name":"Server: Spring","color":"f7c6c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/14","html_url":"https://github.com/swagger-api/swagger-codegen/milestone/14","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/14/labels","id":2318070,"number":14,"title":"v2.2.3","description":"","creator":{"login":"wing328","id":934260,"avatar_url":"https://avatars1.githubusercontent.com/u/934260?v=3","gravatar_id":"","url":"https://api.github.com/users/wing328","html_url":"https://github.com/wing328","followers_url":"https://api.github.com/users/wing328/followers","following_url":"https://api.github.com/users/wing328/following{/other_user}","gists_url":"https://api.github.com/users/wing328/gists{/gist_id}","starred_url":"https://api.github.com/users/wing328/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wing328/subscriptions","organizations_url":"https://api.github.com/users/wing328/orgs","repos_url":"https://api.github.com/users/wing328/repos","events_url":"https://api.github.com/users/wing328/events{/privacy}","received_events_url":"https://api.github.com/users/wing328/received_events","type":"User","site_admin":false},"open_issues":229,"closed_issues":302,"state":"open","created_at":"2017-02-13T09:01:07Z","updated_at":"2017-04-10T06:29:10Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-04-03T18:28:46Z","updated_at":"2017-04-10T13:03:48Z","closed_at":null,"body":"<!--\r\nPlease follow the issue template below for bug reports and feature requests.\r\nAlso please indicate in the issue title which language/library is concerned. Eg:  [JAVA] Bug generating foo with bar \r\n-->\r\n\r\n##### Description\r\n\r\nI am using the swagger-codegen in my gradle file to generate all the controllers & models using the petstore JSON file as input. Is there a way to include pre-defined responses that can be served up when running the generated server code in tomcat? When running the server code in tomcat locally, I only get an empty response body. I am looking to include predefined example/sample response body like a mock server.\r\n\r\n##### Swagger-codegen version\r\n\r\n2.2.1. \r\n\r\n##### Swagger declaration file content or url\r\n\r\nhttps://gist.github.com/elizabetht/3cd961dae529089eaff789d04d382ad5\r\n\r\n##### Command line used for generation\r\n\r\n    language = 'spring'\r\n    inputFile = file('src/main/resources/swagger.json')\r\n    configFile = file('src/main/resources/config.json')\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/292942932","html_url":"https://github.com/swagger-api/swagger-codegen/issues/5310#issuecomment-292942932","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/5310","id":292942932,"user":{"login":"elizabetht","id":5291193,"avatar_url":"https://avatars2.githubusercontent.com/u/5291193?v=3","gravatar_id":"","url":"https://api.github.com/users/elizabetht","html_url":"https://github.com/elizabetht","followers_url":"https://api.github.com/users/elizabetht/followers","following_url":"https://api.github.com/users/elizabetht/following{/other_user}","gists_url":"https://api.github.com/users/elizabetht/gists{/gist_id}","starred_url":"https://api.github.com/users/elizabetht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizabetht/subscriptions","organizations_url":"https://api.github.com/users/elizabetht/orgs","repos_url":"https://api.github.com/users/elizabetht/repos","events_url":"https://api.github.com/users/elizabetht/events{/privacy}","received_events_url":"https://api.github.com/users/elizabetht/received_events","type":"User","site_admin":false},"created_at":"2017-04-10T13:03:47Z","updated_at":"2017-04-10T13:03:47Z","body":"@wing328: yes please let me know. I can follow your help."}}
{"actor":{"display_login":"elizabetht"}}