mirror of https://gitee.com/answerdev/answer.git
doc: update swagger doc
This commit is contained in:
parent
1b464573e1
commit
bdf262768e
42
docs/docs.go
42
docs/docs.go
|
@ -884,7 +884,7 @@ const docTemplate = `{
|
|||
}
|
||||
},
|
||||
"/answer/api/v1/answer/list": {
|
||||
"post": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
|
@ -3614,6 +3614,46 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"/answer/api/v1/user/status": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "get user status info",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"User"
|
||||
],
|
||||
"summary": "get user status info",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/handler.RespBody"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/definitions/schema.GetUserResp"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/answer/api/v1/vote/down": {
|
||||
"post": {
|
||||
"security": [
|
||||
|
|
|
@ -872,7 +872,7 @@
|
|||
}
|
||||
},
|
||||
"/answer/api/v1/answer/list": {
|
||||
"post": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
|
@ -3602,6 +3602,46 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/answer/api/v1/user/status": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"description": "get user status info",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"User"
|
||||
],
|
||||
"summary": "get user status info",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/handler.RespBody"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/definitions/schema.GetUserResp"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/answer/api/v1/vote/down": {
|
||||
"post": {
|
||||
"security": [
|
||||
|
|
|
@ -1877,7 +1877,7 @@ paths:
|
|||
tags:
|
||||
- api-answer
|
||||
/answer/api/v1/answer/list:
|
||||
post:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: AnswerList <br> <b>order</b> (default or updated)
|
||||
|
@ -3529,6 +3529,28 @@ paths:
|
|||
summary: UserRegisterByEmail
|
||||
tags:
|
||||
- User
|
||||
/answer/api/v1/user/status:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: get user status info
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/handler.RespBody'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/schema.GetUserResp'
|
||||
type: object
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: get user status info
|
||||
tags:
|
||||
- User
|
||||
/answer/api/v1/vote/down:
|
||||
post:
|
||||
consumes:
|
||||
|
|
Loading…
Reference in New Issue