support for multiple routing response docs
This commit is contained in:
@ -103,6 +103,18 @@
|
||||
"schema": {
|
||||
"$ref": "#/definitions/UserInfoReply"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Error code list",
|
||||
"schema": {
|
||||
"example": "{\"100101\":\"out of authority\",\"100102\":\"user not exist\"}"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ErrorResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
@ -120,6 +132,22 @@
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"ErrorResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "string"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"title": "ErrorResponse",
|
||||
"required": [
|
||||
"code",
|
||||
"message"
|
||||
]
|
||||
},
|
||||
"LoginReq": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
Reference in New Issue
Block a user