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

LinkinStar0651b29594af
diff --git a/docs/docs.go b/docs/docs.go
index d410c446..59aa0579 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -391,6 +391,77 @@ const docTemplate = `{
}
}
},
+ "/answer/admin/api/setting/smtp": {
+ "get": {
+ "security": [
+ {
+ "ApiKeyAuth": []
+ }
+ ],
+ "description": "GetSMTPConfig get smtp config",
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "admin"
+ ],
+ "summary": "GetSMTPConfig get smtp config",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/handler.RespBody"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "data": {
+ "$ref": "#/definitions/schema.SiteInterfaceResp"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ },
+ "put": {
+ "security": [
+ {
+ "ApiKeyAuth": []
+ }
+ ],
+ "description": "update smtp config",
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "admin"
+ ],
+ "summary": "update smtp config",
+ "parameters": [
+ {
+ "description": "general",
+ "name": "data",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/schema.SiteInterfaceReq"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/handler.RespBody"
+ }
+ }
+ }
+ }
+ },
"/answer/admin/api/siteinfo/general": {
"get": {
"security": [
diff --git a/docs/swagger.json b/docs/swagger.json
index 087e972c..e72de0a6 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -379,6 +379,77 @@
}
}
},
+ "/answer/admin/api/setting/smtp": {
+ "get": {
+ "security": [
+ {
+ "ApiKeyAuth": []
+ }
+ ],
+ "description": "GetSMTPConfig get smtp config",
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "admin"
+ ],
+ "summary": "GetSMTPConfig get smtp config",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/handler.RespBody"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "data": {
+ "$ref": "#/definitions/schema.SiteInterfaceResp"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ },
+ "put": {
+ "security": [
+ {
+ "ApiKeyAuth": []
+ }
+ ],
+ "description": "update smtp config",
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "admin"
+ ],
+ "summary": "update smtp config",
+ "parameters": [
+ {
+ "description": "general",
+ "name": "data",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/schema.SiteInterfaceReq"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/handler.RespBody"
+ }
+ }
+ }
+ }
+ },
"/answer/admin/api/siteinfo/general": {
"get": {
"security": [
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 807347d3..d02fdb6f 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -1599,6 +1599,47 @@ paths:
summary: list report page
tags:
- admin
+ /answer/admin/api/setting/smtp:
+ get:
+ description: GetSMTPConfig get smtp config
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: OK
+ schema:
+ allOf:
+ - $ref: '#/definitions/handler.RespBody'
+ - properties:
+ data:
+ $ref: '#/definitions/schema.SiteInterfaceResp'
+ type: object
+ security:
+ - ApiKeyAuth: []
+ summary: GetSMTPConfig get smtp config
+ tags:
+ - admin
+ put:
+ description: update smtp config
+ parameters:
+ - description: general
+ in: body
+ name: data
+ required: true
+ schema:
+ $ref: '#/definitions/schema.SiteInterfaceReq'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: OK
+ schema:
+ $ref: '#/definitions/handler.RespBody'
+ security:
+ - ApiKeyAuth: []
+ summary: update smtp config
+ tags:
+ - admin
/answer/admin/api/siteinfo/general:
get:
description: Get siteinfo general