auth
POST/auth.createAdmin
auth-createAdmin
Authorization
AuthorizationRequiredBearer <token>
In: header
Request Body
emailRequiredstring
Format: "email"passwordRequiredstring
Minimum length: 8| Status code | Description |
|---|---|
200 | Successful response |
default | Error response |
POST/auth.createUser
auth-createUser
Authorization
AuthorizationRequiredBearer <token>
In: header
Request Body
passwordRequiredstring
Minimum length: 8idRequiredstring
tokenRequiredstring
Minimum length: 1| Status code | Description |
|---|---|
200 | Successful response |
default | Error response |
POST/auth.login
auth-login
Authorization
AuthorizationRequiredBearer <token>
In: header
Request Body
emailRequiredstring
Format: "email"passwordRequiredstring
Minimum length: 8| Status code | Description |
|---|---|
200 | Successful response |
default | Error response |
GET/auth.get
auth-get
Authorization
AuthorizationRequiredBearer <token>
In: header
| Status code | Description |
|---|---|
200 | Successful response |
default | Error response |
POST/auth.logout
auth-logout
Authorization
AuthorizationRequiredBearer <token>
In: header
| Status code | Description |
|---|---|
200 | Successful response |
default | Error response |
POST/auth.update
auth-update
Authorization
AuthorizationRequiredBearer <token>
In: header
Request Body
idstring
emailRequiredstring | null
passwordRequiredstring | null
rolstring
Value in: "admin" | "user"imagestring
secretstring | null
tokenstring | null
is2FAEnabledboolean
createdAtstring
| Status code | Description |
|---|---|
200 | Successful response |
default | Error response |
POST/auth.generateToken
auth-generateToken
Authorization
AuthorizationRequiredBearer <token>
In: header
| Status code | Description |
|---|---|
200 | Successful response |
default | Error response |
GET/auth.one
auth-one
Authorization
AuthorizationRequiredBearer <token>
In: header
Query Parameters
idRequiredstring
| Status code | Description |
|---|---|
200 | Successful response |
default | Error response |
POST/auth.updateByAdmin
auth-updateByAdmin
Authorization
AuthorizationRequiredBearer <token>
In: header
Request Body
idRequiredstring
Minimum length: 1emailRequiredstring | null
passwordRequiredstring | null
rolstring
Value in: "admin" | "user"imagestring
secretstring | null
tokenstring | null
is2FAEnabledboolean
createdAtstring
| Status code | Description |
|---|---|
200 | Successful response |
default | Error response |
GET/auth.generate2FASecret
auth-generate2FASecret
Authorization
AuthorizationRequiredBearer <token>
In: header
| Status code | Description |
|---|---|
200 | Successful response |
default | Error response |
POST/auth.verify2FASetup
auth-verify2FASetup
Authorization
AuthorizationRequiredBearer <token>
In: header
Request Body
pinRequiredstring
Minimum length: 6secretRequiredstring
Minimum length: 1| Status code | Description |
|---|---|
200 | Successful response |
default | Error response |
POST/auth.verifyLogin2FA
auth-verifyLogin2FA
Authorization
AuthorizationRequiredBearer <token>
In: header
Request Body
pinRequiredstring
Minimum length: 6idRequiredstring
| Status code | Description |
|---|---|
200 | Successful response |
default | Error response |
POST/auth.disable2FA
auth-disable2FA
Authorization
AuthorizationRequiredBearer <token>
In: header
| Status code | Description |
|---|---|
200 | Successful response |
default | Error response |
POST/auth.verifyToken
auth-verifyToken
Authorization
AuthorizationRequiredBearer <token>
In: header
| Status code | Description |
|---|---|
200 | Successful response |
default | Error response |