summaryrefslogtreecommitdiff
path: root/internal/api/client/admin/emailtest.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/admin/emailtest.go')
-rw-r--r--internal/api/client/admin/emailtest.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/api/client/admin/emailtest.go b/internal/api/client/admin/emailtest.go
index bd5d12dc6..b50c75a29 100644
--- a/internal/api/client/admin/emailtest.go
+++ b/internal/api/client/admin/emailtest.go
@@ -68,22 +68,36 @@ import (
// '202':
// description: Test email was sent.
// '400':
+// schema:
+// "$ref": "#/definitions/error"
// description: bad request
// '401':
+// schema:
+// "$ref": "#/definitions/error"
// description: unauthorized
// '403':
+// schema:
+// "$ref": "#/definitions/error"
// description: forbidden
// '404':
+// schema:
+// "$ref": "#/definitions/error"
// description: not found
// '406':
+// schema:
+// "$ref": "#/definitions/error"
// description: not acceptable
// '422':
+// schema:
+// "$ref": "#/definitions/error"
// description: >-
// An smtp occurred while the email attempt was in progress.
// Check the returned json for more information. The smtp error
// will be included, to help you debug communication with the
// smtp server.
// '500':
+// schema:
+// "$ref": "#/definitions/error"
// description: internal server error
func (m *Module) EmailTestPOSTHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,