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.
docs: Add render api
robin6214fed8ae75
diff --git a/docs/docs.go b/docs/docs.goindex daef6851..389f3bdf 100644--- a/docs/docs.go+++ b/docs/docs.go@@ -4854,6 +4854,41 @@ const docTemplate = `{}}},+ "/answer/api/v1/render/config": {+ "get": {+ "description": "GetRenderConfig",+ "consumes": [+ "application/json"+ ],+ "produces": [+ "application/json"+ ],+ "tags": [+ "PluginRender"+ ],+ "summary": "GetRenderConfig",+ "responses": {+ "200": {+ "description": "OK",+ "schema": {+ "allOf": [+ {+ "$ref": "#/definitions/handler.RespBody"+ },+ {+ "type": "object",+ "properties": {+ "data": {+ "$ref": "#/definitions/plugin.RenderConfig"+ }+ }+ }+ ]+ }+ }+ }+ }+ },"/answer/api/v1/report": {"post": {"security": [@@ -7420,6 +7455,14 @@ const docTemplate = `{}}},+ "plugin.RenderConfig": {+ "type": "object",+ "properties": {+ "select_theme": {+ "type": "string"+ }+ }+ },"schema.AcceptAnswerReq": {"type": "object","required": [@@ -9257,10 +9300,16 @@ const docTemplate = `{},"schema.NotificationClearRequest": {"type": "object",+ "required": [+ "type"+ ],"properties": {"type": {- "description": "inbox achievement",- "type": "string"+ "type": "string",+ "enum": [+ "inbox",+ "achievement"+ ]}}},diff --git a/docs/swagger.json b/docs/swagger.jsonindex c7ad452e..3d6f07c8 100644--- a/docs/swagger.json+++ b/docs/swagger.json@@ -4828,6 +4828,41 @@}}},+ "/answer/api/v1/render/config": {+ "get": {+ "description": "GetRenderConfig",+ "consumes": [+ "application/json"+ ],+ "produces": [+ "application/json"+ ],+ "tags": [+ "PluginRender"+ ],+ "summary": "GetRenderConfig",+ "responses": {+ "200": {+ "description": "OK",+ "schema": {+ "allOf": [+ {+ "$ref": "#/definitions/handler.RespBody"+ },+ {+ "type": "object",+ "properties": {+ "data": {+ "$ref": "#/definitions/plugin.RenderConfig"+ }+ }+ }+ ]+ }+ }+ }+ }+ },"/answer/api/v1/report": {"post": {"security": [@@ -7394,6 +7429,14 @@}}},+ "plugin.RenderConfig": {+ "type": "object",+ "properties": {+ "select_theme": {+ "type": "string"+ }+ }+ },"schema.AcceptAnswerReq": {"type": "object","required": [@@ -9231,10 +9274,16 @@},"schema.NotificationClearRequest": {"type": "object",+ "required": [+ "type"+ ],"properties": {"type": {- "description": "inbox achievement",- "type": "string"+ "type": "string",+ "enum": [+ "inbox",+ "achievement"+ ]}}},diff --git a/docs/swagger.yaml b/docs/swagger.yamlindex 1cf29862..d2d43504 100644--- a/docs/swagger.yaml+++ b/docs/swagger.yaml@@ -135,6 +135,11 @@ definitions:platform:type: stringtype: object+ plugin.RenderConfig:+ properties:+ select_theme:+ type: string+ type: objectschema.AcceptAnswerReq:properties:answer_id:@@ -1414,8 +1419,12 @@ definitions:schema.NotificationClearRequest:properties:type:- description: inbox achievement+ enum:+ - inbox+ - achievementtype: string+ required:+ - typetype: objectschema.OnCompleteAction:properties:@@ -5817,6 +5826,26 @@ paths:summary: get reasons by object type and actiontags:- reason+ /answer/api/v1/render/config:+ get:+ consumes:+ - application/json+ description: GetRenderConfig+ produces:+ - application/json+ responses:+ "200":+ description: OK+ schema:+ allOf:+ - $ref: '#/definitions/handler.RespBody'+ - properties:+ data:+ $ref: '#/definitions/plugin.RenderConfig'+ type: object+ summary: GetRenderConfig+ tags:+ - PluginRender/answer/api/v1/report:post:consumes: