JWT Authentication
URL:
https://botusist.dev.br/painel/restapi.php?api=jwt-auth
METHOD:
GET https://botusist.dev.br/painel/restapi.php?api=jwt-auth
Request Token
URL:
https://botusist.dev.br/painel/restapi.php?api=jwt-auth&action=token
METHOD:
POST https://botusist.dev.br/painel/restapi.php?api=jwt-auth&action=token
Parameters
Parameter | Value | Description | Data Type |
---|
username | jasman | username of user | String |
password | 123456 | password of user | String |
Validates the user credentials, username and password, and returns a token to use in a future request to the API if the authentication is correct or error if the authentication fails
Token Validation
URL
https://botusist.dev.br/painel/restapi.php?api=jwt-auth&action=token-validate
METHOD
POST https://botusist.dev.br/painel/restapi.php?api=jwt-auth&action=token-validate
This is token validator; you only will need to make a POST request sending the Authorization header.
Register
URL
https://botusist.dev.br/painel/restapi.php?api=jwt-auth&action=register
METHOD
POST https://botusist.dev.br/painel/restapi.php?api=jwt-auth&action=register
List categorias (JSON URL for List of Items)
URL:
https://botusist.dev.br/painel/restapi.php?api=categoria
METHOD:
GET https://botusist.dev.br/painel/restapi.php?api=categoria
Parameters
Parameter | Value | Description | Data Type |
---|
sort | asc | asc | Order sort attribute ascending or descending | String |
orderby | id-categoria |
categoria |
random | Sort collection by object attribute | String |
id-categoria |
| Limit result set to items with more specific by `id_categoria` | Integer |
categoria |
| Limit result set to items with more specific by `categoria` | String |
Example
- https://botusist.dev.br/painel/restapi.php?api=categoria
- https://botusist.dev.br/painel/restapi.php?api=categoria&orderby=id_categoria
- https://botusist.dev.br/painel/restapi.php?api=categoria&orderby=random
- https://botusist.dev.br/painel/restapi.php?api=categoria&orderby=id_categoria&sort=desc
Retrieve a categoria (JSON URL for Single Item)
URL:
https://botusist.dev.br/painel/restapi.php?api=categoria&id-categoria={id}
METHOD:
GET https://botusist.dev.br/painel/restapi.php?api=categoria&id-categoria=<id-categoria>
Parameters
Parameter | Value | Description | Data Type |
---|
id-categoria |
| Unique identifier for the object and use random for random IDs | Integer |
Example
- https://botusist.dev.br/painel/restapi.php?api=categoria&id-categoria=1
- https://botusist.dev.br/painel/restapi.php?api=categoria&id-categoria=2
- https://botusist.dev.br/painel/restapi.php?api=categoria&id-categoria=random
List clientes (JSON URL for List of Items)
URL:
https://botusist.dev.br/painel/restapi.php?api=cliente
METHOD:
GET https://botusist.dev.br/painel/restapi.php?api=cliente
Parameters
Parameter | Value | Description | Data Type |
---|
sort | asc | asc | Order sort attribute ascending or descending | String |
orderby | id-cliente |
nome |
telefone |
cep |
rua |
bairro |
complemento |
pedido |
item |
total |
pagamento |
data |
random | Sort collection by object attribute | String |
id-cliente |
| Limit result set to items with more specific by `id_cliente` | Integer |
nome |
| Limit result set to items with more specific by `nome` | String |
telefone |
| Limit result set to items with more specific by `telefone` | String |
cep |
| Limit result set to items with more specific by `cep` | String |
rua |
| Limit result set to items with more specific by `rua` | String |
bairro |
| Limit result set to items with more specific by `bairro` | String |
complemento |
| Limit result set to items with more specific by `complemento` | String |
pedido |
| Limit result set to items with more specific by `pedido` | String |
item |
| Limit result set to items with more specific by `item` | String |
total |
| Limit result set to items with more specific by `total` | String |
pagamento |
| Limit result set to items with more specific by `pagamento` | String |
data |
| Limit result set to items with more specific by `data` | String |
Example
- https://botusist.dev.br/painel/restapi.php?api=cliente
- https://botusist.dev.br/painel/restapi.php?api=cliente&orderby=id_cliente
- https://botusist.dev.br/painel/restapi.php?api=cliente&orderby=random
- https://botusist.dev.br/painel/restapi.php?api=cliente&orderby=id_cliente&sort=desc
Retrieve a cliente (JSON URL for Single Item)
URL:
https://botusist.dev.br/painel/restapi.php?api=cliente&id-cliente={id}
METHOD:
GET https://botusist.dev.br/painel/restapi.php?api=cliente&id-cliente=<id-cliente>
Parameters
Parameter | Value | Description | Data Type |
---|
id-cliente |
| Unique identifier for the object and use random for random IDs | Integer |
Example
- https://botusist.dev.br/painel/restapi.php?api=cliente&id-cliente=1
- https://botusist.dev.br/painel/restapi.php?api=cliente&id-cliente=2
- https://botusist.dev.br/painel/restapi.php?api=cliente&id-cliente=random
List produtos (JSON URL for List of Items)
URL:
https://botusist.dev.br/painel/restapi.php?api=produto
METHOD:
GET https://botusist.dev.br/painel/restapi.php?api=produto
Parameters
Parameter | Value | Description | Data Type |
---|
sort | asc | asc | Order sort attribute ascending or descending | String |
orderby | id-produto |
produto |
valor |
categoria |
random | Sort collection by object attribute | String |
id-produto |
| Limit result set to items with more specific by `id_produto` | Integer |
produto |
| Limit result set to items with more specific by `produto` | String |
valor |
| Limit result set to items with more specific by `valor` | String |
categoria | categoria | Limit result set to items with more specific by `categoria` | String |
Example
- https://botusist.dev.br/painel/restapi.php?api=produto
- https://botusist.dev.br/painel/restapi.php?api=produto&orderby=id_produto
- https://botusist.dev.br/painel/restapi.php?api=produto&orderby=random
- https://botusist.dev.br/painel/restapi.php?api=produto&orderby=id_produto&sort=desc
Retrieve a produto (JSON URL for Single Item)
URL:
https://botusist.dev.br/painel/restapi.php?api=produto&id-produto={id}
METHOD:
GET https://botusist.dev.br/painel/restapi.php?api=produto&id-produto=<id-produto>
Parameters
Parameter | Value | Description | Data Type |
---|
id-produto |
| Unique identifier for the object and use random for random IDs | Integer |
Example
- https://botusist.dev.br/painel/restapi.php?api=produto&id-produto=1
- https://botusist.dev.br/painel/restapi.php?api=produto&id-produto=2
- https://botusist.dev.br/painel/restapi.php?api=produto&id-produto=random
List users (JSON URL for List of Items)
URL:
https://botusist.dev.br/painel/restapi.php?api=user
METHOD:
GET https://botusist.dev.br/painel/restapi.php?api=user
Parameters
Parameter | Value | Description | Data Type |
---|
sort | asc | asc | Order sort attribute ascending or descending | String |
orderby | id |
nome |
random | Sort collection by object attribute | String |
id |
| Limit result set to items with more specific by `id` | Integer |
nome |
| Limit result set to items with more specific by `nome` | String |
Example
- https://botusist.dev.br/painel/restapi.php?api=user
- https://botusist.dev.br/painel/restapi.php?api=user&orderby=id
- https://botusist.dev.br/painel/restapi.php?api=user&orderby=random
- https://botusist.dev.br/painel/restapi.php?api=user&orderby=id&sort=desc
Retrieve a user (JSON URL for Single Item)
URL:
https://botusist.dev.br/painel/restapi.php?api=user&id={id}
METHOD:
GET https://botusist.dev.br/painel/restapi.php?api=user&id=<id>
Parameters
Parameter | Value | Description | Data Type |
---|
id |
| Unique identifier for the object and use random for random IDs | Integer |
Example
- https://botusist.dev.br/painel/restapi.php?api=user&id=1
- https://botusist.dev.br/painel/restapi.php?api=user&id=2
- https://botusist.dev.br/painel/restapi.php?api=user&id=random