{"action":"opened","issue":{"url":"https://api.github.com/repos/springfox/springfox/issues/2618","repository_url":"https://api.github.com/repos/springfox/springfox","labels_url":"https://api.github.com/repos/springfox/springfox/issues/2618/labels{/name}","comments_url":"https://api.github.com/repos/springfox/springfox/issues/2618/comments","events_url":"https://api.github.com/repos/springfox/springfox/issues/2618/events","html_url":"https://github.com/springfox/springfox/issues/2618","id":350372846,"node_id":"MDU6SXNzdWUzNTAzNzI4NDY=","number":2618,"title":"Can I add a global custom business response code?","user":{"login":"xiaoymin","id":7894406,"node_id":"MDQ6VXNlcjc4OTQ0MDY=","avatar_url":"https://avatars2.githubusercontent.com/u/7894406?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaoymin","html_url":"https://github.com/xiaoymin","followers_url":"https://api.github.com/users/xiaoymin/followers","following_url":"https://api.github.com/users/xiaoymin/following{/other_user}","gists_url":"https://api.github.com/users/xiaoymin/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaoymin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaoymin/subscriptions","organizations_url":"https://api.github.com/users/xiaoymin/orgs","repos_url":"https://api.github.com/users/xiaoymin/repos","events_url":"https://api.github.com/users/xiaoymin/events{/privacy}","received_events_url":"https://api.github.com/users/xiaoymin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-14T10:39:09Z","updated_at":"2018-08-14T10:39:09Z","closed_at":null,"author_association":"NONE","body":"At present, the json data structure returned by /v2/api-docs mainly contains the attribute information of the documents' paths, tags, basePath, info, etc. However, in actual development, only the above attributes are not enough. Sometimes, the developer targets The self-encapsulated technical architecture generally has a custom response code for the restful interface. The response code is not a response code of http.\r\nsuch as:\r\n```java\r\nSUCCESS(\"18200\",\"SUCCESS\"),\r\nFAIL(\"18300\",\"FAIL\")\r\n```\r\n\r\nMore of this kind of enumeration custom business response code, currently can not be displayed in the swagger document, causing some trouble for developers\r\n\r\nSo, whether the new version can add some custom features, or provide a developer-defined top-level interface, the developer can implement the relevant implementation class according to their own business, and then display it through the swagger document."}}
{"actor":{"display_login":"xiaoymin"}}