This is an automated email from the ASF dual-hosted git repository. linkinstar pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/answer.git
commit 67b9c0b462845ce64cc9a48fd6115dde69dc66dc Author: LinkinStars <linkins...@foxmail.com> AuthorDate: Tue Jun 24 11:19:53 2025 +0800 refactor(api): update API documentation for Accept Answer endpoint --- docs/docs.go | 8 ++++---- docs/swagger.json | 8 ++++---- docs/swagger.yaml | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) 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: