Datafood - RESTful API

Painel de cadastros

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

ParameterValueDescriptionData Type
usernamejasmanusername of userString
password123456password of userString

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

ParameterValueDescriptionData Type
sortasc | ascOrder sort attribute ascending or descendingString
orderbyid-categoria |
categoria |
random
Sort collection by object attributeString
id-categoriaLimit result set to items with more specific by `id_categoria`Integer
categoriaLimit 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

ParameterValueDescriptionData Type
id-categoriaUnique identifier for the object and use random for random IDsInteger

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

ParameterValueDescriptionData Type
sortasc | ascOrder sort attribute ascending or descendingString
orderbyid-cliente |
nome |
telefone |
cep |
rua |
bairro |
complemento |
pedido |
item |
total |
pagamento |
data |
random
Sort collection by object attributeString
id-clienteLimit result set to items with more specific by `id_cliente`Integer
nomeLimit result set to items with more specific by `nome`String
telefoneLimit result set to items with more specific by `telefone`String
cepLimit result set to items with more specific by `cep`String
ruaLimit result set to items with more specific by `rua`String
bairroLimit result set to items with more specific by `bairro`String
complementoLimit result set to items with more specific by `complemento`String
pedidoLimit result set to items with more specific by `pedido`String
itemLimit result set to items with more specific by `item`String
totalLimit result set to items with more specific by `total`String
pagamentoLimit result set to items with more specific by `pagamento`String
dataLimit 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

ParameterValueDescriptionData Type
id-clienteUnique identifier for the object and use random for random IDsInteger

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

ParameterValueDescriptionData Type
sortasc | ascOrder sort attribute ascending or descendingString
orderbyid-produto |
produto |
valor |
categoria |
random
Sort collection by object attributeString
id-produtoLimit result set to items with more specific by `id_produto`Integer
produtoLimit result set to items with more specific by `produto`String
valorLimit result set to items with more specific by `valor`String
categoriacategoriaLimit 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

ParameterValueDescriptionData Type
id-produtoUnique identifier for the object and use random for random IDsInteger

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

ParameterValueDescriptionData Type
sortasc | ascOrder sort attribute ascending or descendingString
orderbyid |
nome |
random
Sort collection by object attributeString
idLimit result set to items with more specific by `id`Integer
nomeLimit 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

ParameterValueDescriptionData Type
idUnique identifier for the object and use random for random IDsInteger

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