diff options
Diffstat (limited to 'internal/api/client/accounts/accountcreate.go')
| -rw-r--r-- | internal/api/client/accounts/accountcreate.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/api/client/accounts/accountcreate.go b/internal/api/client/accounts/accountcreate.go index ef45c7529..d8da4470c 100644 --- a/internal/api/client/accounts/accountcreate.go +++ b/internal/api/client/accounts/accountcreate.go @@ -58,19 +58,31 @@ import ( // schema: // "$ref": "#/definitions/oauthToken" // '400': +// schema: +// "$ref": "#/definitions/error" // description: bad request // '401': +// schema: +// "$ref": "#/definitions/error" // description: unauthorized // '404': +// schema: +// "$ref": "#/definitions/error" // description: not found // '406': +// schema: +// "$ref": "#/definitions/error" // description: not acceptable // '422': +// schema: +// "$ref": "#/definitions/error" // description: >- // Unprocessable. Your account creation request cannot be processed // because either too many accounts have been created on this instance // in the last 24h, or the pending account backlog is full. // '500': +// schema: +// "$ref": "#/definitions/error" // description: internal server error func (m *Module) AccountCreatePOSTHandler(c *gin.Context) { authed, errWithCode := apiutil.TokenAuth(c, |
