auth
POST/auth.createAdmin
auth-createAdmin
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
email
Requiredstring
Format: "email"
password
Requiredstring
Minimum length: 8
Status code | Description |
---|---|
200 | Successful response |
default | Error response |
POST/auth.createUser
auth-createUser
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
password
Requiredstring
Minimum length: 8
id
Requiredstring
token
Requiredstring
Minimum length: 1
Status code | Description |
---|---|
200 | Successful response |
default | Error response |
POST/auth.login
auth-login
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
email
Requiredstring
Format: "email"
password
Requiredstring
Minimum length: 8
Status code | Description |
---|---|
200 | Successful response |
default | Error response |
GET/auth.get
auth-get
Authorization
Authorization
RequiredBearer <token>
In: header
Status code | Description |
---|---|
200 | Successful response |
default | Error response |
POST/auth.logout
auth-logout
Authorization
Authorization
RequiredBearer <token>
In: header
Status code | Description |
---|---|
200 | Successful response |
default | Error response |
POST/auth.update
auth-update
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
id
string
email
Requiredstring | null
password
Requiredstring | null
rol
string
Value in: "admin" | "user"
image
string
secret
string | null
token
string | null
is2FAEnabled
boolean
createdAt
string
Status code | Description |
---|---|
200 | Successful response |
default | Error response |
POST/auth.generateToken
auth-generateToken
Authorization
Authorization
RequiredBearer <token>
In: header
Status code | Description |
---|---|
200 | Successful response |
default | Error response |
GET/auth.one
auth-one
Authorization
Authorization
RequiredBearer <token>
In: header
Query Parameters
id
Requiredstring
Status code | Description |
---|---|
200 | Successful response |
default | Error response |
POST/auth.updateByAdmin
auth-updateByAdmin
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
id
Requiredstring
Minimum length: 1
email
Requiredstring | null
password
Requiredstring | null
rol
string
Value in: "admin" | "user"
image
string
secret
string | null
token
string | null
is2FAEnabled
boolean
createdAt
string
Status code | Description |
---|---|
200 | Successful response |
default | Error response |
GET/auth.generate2FASecret
auth-generate2FASecret
Authorization
Authorization
RequiredBearer <token>
In: header
Status code | Description |
---|---|
200 | Successful response |
default | Error response |
POST/auth.verify2FASetup
auth-verify2FASetup
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
pin
Requiredstring
Minimum length: 6
secret
Requiredstring
Minimum length: 1
Status code | Description |
---|---|
200 | Successful response |
default | Error response |
POST/auth.verifyLogin2FA
auth-verifyLogin2FA
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
pin
Requiredstring
Minimum length: 6
id
Requiredstring
Status code | Description |
---|---|
200 | Successful response |
default | Error response |
POST/auth.disable2FA
auth-disable2FA
Authorization
Authorization
RequiredBearer <token>
In: header
Status code | Description |
---|---|
200 | Successful response |
default | Error response |
POST/auth.verifyToken
auth-verifyToken
Authorization
Authorization
RequiredBearer <token>
In: header
Status code | Description |
---|---|
200 | Successful response |
default | Error response |