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.

refactor(api): update API documentation for Accept Answer endpoint

LinkinStars67b9c0b46284
diff --git a/docs/docs.go b/docs/docs.go
index 31f36146..76750aee 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -2152,7 +2152,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
- "type": "string"
+ "$ref": "#/definitions/handler.RespBody"
}
}
}
@@ -2239,7 +2239,7 @@ const docTemplate = `{
"ApiKeyAuth": []
}
],
- "description": "Accepted",
+ "description": "Accept Answer",
"consumes": [
"application/json"
],
@@ -2249,7 +2249,7 @@ const docTemplate = `{
"tags": [
"Answer"
],
- "summary": "Accepted",
+ "summary": "Accept Answer",
"parameters": [
{
"description": "AcceptAnswerReq",
@@ -2265,7 +2265,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
- "type": "string"
+ "$ref": "#/definitions/handler.RespBody"
}
}
}
diff --git a/docs/swagger.json b/docs/swagger.json
index c2318a7c..4682f67c 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -2125,7 +2125,7 @@
"200": {
"description": "OK",
"schema": {
- "type": "string"
+ "$ref": "#/definitions/handler.RespBody"
}
}
}
@@ -2212,7 +2212,7 @@
"ApiKeyAuth": []
}
],
- "description": "Accepted",
+ "description": "Accept Answer",
"consumes": [
"application/json"
],
@@ -2222,7 +2222,7 @@
"tags": [
"Answer"
],
- "summary": "Accepted",
+ "summary": "Accept Answer",
"parameters": [
{
"description": "AcceptAnswerReq",
@@ -2238,7 +2238,7 @@
"200": {
"description": "OK",
"schema": {
- "type": "string"
+ "$ref": "#/definitions/handler.RespBody"
}
}
}
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index f89ea946..3d68f8a6 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -4446,7 +4446,7 @@ paths:
"200":
description: OK
schema:
- type: string
+ $ref: '#/definitions/handler.RespBody'
security:
- ApiKeyAuth: []
summary: Update Answer
@@ -4456,7 +4456,7 @@ paths:
post:
consumes:
- application/json
- description: Accepted
+ description: Accept Answer
parameters:
- description: AcceptAnswerReq
in: body
@@ -4470,10 +4470,10 @@ paths:
"200":
description: OK
schema:
- type: string
+ $ref: '#/definitions/handler.RespBody'
security:
- ApiKeyAuth: []
- summary: Accepted
+ summary: Accept Answer
tags:
- Answer
/answer/api/v1/answer/info: