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.

swagger

aichy126785b05f31e18
diff --git a/docs/docs.go b/docs/docs.go
index 3310c0b2..27da67dd 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -3588,34 +3588,6 @@ const docTemplate = `{
}
}
},
- "/answer/api/v1/question/closemsglist": {
- "get": {
- "security": [
- {
- "ApiKeyAuth": []
- }
- ],
- "description": "close question msg list",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "Question"
- ],
- "summary": "close question msg list",
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "$ref": "#/definitions/handler.RespBody"
- }
- }
- }
- }
- },
"/answer/api/v1/question/info": {
"get": {
"security": [
@@ -4049,56 +4021,6 @@ const docTemplate = `{
}
}
},
- "/answer/api/v1/report/type/list": {
- "get": {
- "description": "get report type list",
- "produces": [
- "application/json"
- ],
- "tags": [
- "Report"
- ],
- "summary": "get report type list",
- "parameters": [
- {
- "enum": [
- "question",
- "answer",
- "comment",
- "user"
- ],
- "type": "string",
- "description": "report source",
- "name": "source",
- "in": "query",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "allOf": [
- {
- "$ref": "#/definitions/handler.RespBody"
- },
- {
- "type": "object",
- "properties": {
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/schema.GetReportTypeResp"
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- },
"/answer/api/v1/revisions": {
"get": {
"description": "get revision list",
@@ -6879,35 +6801,6 @@ const docTemplate = `{
}
}
},
- "schema.GetReportTypeResp": {
- "type": "object",
- "properties": {
- "content_type": {
- "description": "content type",
- "type": "string"
- },
- "description": {
- "description": "report description",
- "type": "string"
- },
- "have_content": {
- "description": "is have content",
- "type": "boolean"
- },
- "name": {
- "description": "report name",
- "type": "string"
- },
- "source": {
- "description": "report source",
- "type": "string"
- },
- "type": {
- "description": "report type",
- "type": "integer"
- }
- }
- },
"schema.GetRevisionResp": {
"type": "object",
"properties": {
@@ -8355,6 +8248,9 @@ const docTemplate = `{
"system",
"gravatar"
]
+ },
+ "gravatar_base_url": {
+ "type": "string"
}
}
},
@@ -8388,6 +8284,9 @@ const docTemplate = `{
"system",
"gravatar"
]
+ },
+ "gravatar_base_url": {
+ "type": "string"
}
}
},
diff --git a/docs/swagger.json b/docs/swagger.json
index d8bcb632..c54cf2af 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -3576,34 +3576,6 @@
}
}
},
- "/answer/api/v1/question/closemsglist": {
- "get": {
- "security": [
- {
- "ApiKeyAuth": []
- }
- ],
- "description": "close question msg list",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "Question"
- ],
- "summary": "close question msg list",
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "$ref": "#/definitions/handler.RespBody"
- }
- }
- }
- }
- },
"/answer/api/v1/question/info": {
"get": {
"security": [
@@ -4037,56 +4009,6 @@
}
}
},
- "/answer/api/v1/report/type/list": {
- "get": {
- "description": "get report type list",
- "produces": [
- "application/json"
- ],
- "tags": [
- "Report"
- ],
- "summary": "get report type list",
- "parameters": [
- {
- "enum": [
- "question",
- "answer",
- "comment",
- "user"
- ],
- "type": "string",
- "description": "report source",
- "name": "source",
- "in": "query",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "allOf": [
- {
- "$ref": "#/definitions/handler.RespBody"
- },
- {
- "type": "object",
- "properties": {
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/schema.GetReportTypeResp"
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- },
"/answer/api/v1/revisions": {
"get": {
"description": "get revision list",
@@ -6867,35 +6789,6 @@
}
}
},
- "schema.GetReportTypeResp": {
- "type": "object",
- "properties": {
- "content_type": {
- "description": "content type",
- "type": "string"
- },
- "description": {
- "description": "report description",
- "type": "string"
- },
- "have_content": {
- "description": "is have content",
- "type": "boolean"
- },
- "name": {
- "description": "report name",
- "type": "string"
- },
- "source": {
- "description": "report source",
- "type": "string"
- },
- "type": {
- "description": "report type",
- "type": "integer"
- }
- }
- },
"schema.GetRevisionResp": {
"type": "object",
"properties": {
@@ -8343,6 +8236,9 @@
"system",
"gravatar"
]
+ },
+ "gravatar_base_url": {
+ "type": "string"
}
}
},
@@ -8376,6 +8272,9 @@
"system",
"gravatar"
]
+ },
+ "gravatar_base_url": {
+ "type": "string"
}
}
},
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index a97803db..893f8330 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -693,27 +693,6 @@ definitions:
description: url title
type: string
type: object
- schema.GetReportTypeResp:
- properties:
- content_type:
- description: content type
- type: string
- description:
- description: report description
- type: string
- have_content:
- description: is have content
- type: boolean
- name:
- description: report name
- type: string
- source:
- description: report source
- type: string
- type:
- description: report type
- type: integer
- type: object
schema.GetRevisionResp:
properties:
content:
@@ -1733,6 +1712,8 @@ definitions:
- system
- gravatar
type: string
+ gravatar_base_url:
+ type: string
required:
- default_avatar
type: object
@@ -1755,6 +1736,8 @@ definitions:
- system
- gravatar
type: string
+ gravatar_base_url:
+ type: string
required:
- default_avatar
type: object
@@ -4432,23 +4415,6 @@ paths:
summary: add question and answer
tags:
- Question
- /answer/api/v1/question/closemsglist:
- get:
- consumes:
- - application/json
- description: close question msg list
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/handler.RespBody'
- security:
- - ApiKeyAuth: []
- summary: close question msg list
- tags:
- - Question
/answer/api/v1/question/info:
get:
consumes:
@@ -4715,37 +4681,6 @@ paths:
summary: add report
tags:
- Report
- /answer/api/v1/report/type/list:
- get:
- description: get report type list
- parameters:
- - description: report source
- enum:
- - question
- - answer
- - comment
- - user
- in: query
- name: source
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- allOf:
- - $ref: '#/definitions/handler.RespBody'
- - properties:
- data:
- items:
- $ref: '#/definitions/schema.GetReportTypeResp'
- type: array
- type: object
- summary: get report type list
- tags:
- - Report
/answer/api/v1/revisions:
get:
description: get revision list