Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

doc: update swagger doc

LinkinStarbdf262768edc
diff --git a/docs/docs.go b/docs/docs.go
index e09a2ac8..577af397 100644
--- a/docs/docs.go
+++ b/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": [
diff --git a/docs/swagger.json b/docs/swagger.json
index 9feff4b0..2661dd62 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -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": [
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index ba4fed36..5871e940 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -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: