Introduction
Welcome to the generated API reference.
Do you use Postman? Great.
Get Postman Collection
Get Postman Environment
Header
Header | Value | When should I send? |
---|---|---|
Accept | application/json | All requests |
Content-Type | application/x-www-form-urlencoded | Must send when passing query string in request body |
Content-Type | application/json | Must send when passing json in request body |
Content-Type | multipart/form-data | Must send when passing files in request body |
Authorization | Bearer access_token |
Whenever the resource requires an authenticated user |
Language | language |
All requests |
Controlling requests
All API requests are limited to prevent abuse and ensure stability.
The limit is usually 120 requests every 1 minute. But each route can have its own limit.
You can always check the response header to have a status of available requests:
X-RateLimit-Limit → 120
X-RateLimit-Remaining → 25
Errors
API uses the following error codes:
Error Code | Meaning |
---|---|
400 | Bad Request -- Your request sucks |
401 | Unauthorized -- Your API key is wrong |
403 | Forbidden -- You are not authorized or do not have permission to access |
404 | Not Found -- The specified page can not be found |
405 | Method Not Allowed -- Method not allowed for this request |
406 | Not Acceptable -- You have requested a format that is not valid |
410 | Gone -- The target resource is no longer available |
413 | Payload Too Large -- Request payload is larger than the server is willing or able to process |
422 | Unprocessable Entity -- Validation error, the given data was invalid |
429 | Too Many Requests -- You have sent too many requests in a certain amount of time ("rate limiting") |
500 | Internal Server Error -- We had a problem with our server. Try again later. |
503 | Service Unavailable -- We're temporarially offline for maintanance. Please try again later. |
About app
Get about app
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/about-app",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/about-app
Permission required
about-app.edit
Update about app
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/about-app",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"name": "Perferendis omnis aut qui aut consequatur vel.",
"text": "Tempore qui enim autem rerum velit dolore officia. Voluptatum qui sunt animi vel illum omnis et modi. Quos veritatis facere est quia. Fugiat qui et aut."
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/about-app
Permission required
about-app.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
name | string | string|max:191 | |
text | string | nullable|string|max:60000 | HTML allowed |
About company
Get about company
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/company-app",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/company-app
Permission required
about-company.edit
Update about company
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/company-app",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"name": "Minus eum dolorum expedita voluptas blanditiis aut.",
"text": "Saepe voluptas corporis eos sint. Dolorem et enim illo vero. Repudiandae ut non sit repudiandae est. Molestiae ea eveniet quas rerum a voluptas sed."
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/company-app
Permission required
about-company.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
name | string | string|max:191 | |
text | string | nullable|string|max:60000 | HTML allowed |
Authentication
Login
5 login attempts can be performed every 1 minute.
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/auth/login",
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"email": "sandro.dias@example.org",
"password": "H9WsxyDUkp",
"token_name": "My Computer"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"token_type": "Bearer",
"access_token": "eyJ0eXAiOiJ..."
}
HTTP Request
POST api/v1/admin/auth/login
No authentication required
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
string | required|email | ||
password | string | required|string|min:6 | |
token_name | string | required|string|max:191 | Client app name |
Password recovery
Send password reset link do user
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/auth/password/recovery",
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"email": "nicolas.rico@example.com"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"message": "Success message"
}
HTTP Request
POST api/v1/admin/auth/password/recovery
No authentication required
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
string | required|email |
Reset the given user's password.
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/auth/password/reset",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/auth/password/reset
Logout
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/auth/logout",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/auth/logout
Get the authenticated user
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/auth/user",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/auth/user
Get all tokens
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/auth/tokens",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/auth/tokens
Delete token
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/auth/tokens/{tokenId}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/auth/tokens/{tokenId}
Change password
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/auth/change-password",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"password": "my_current_password",
"password_new": "my_new_password",
"password_new_confirmation": "my_new_password"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/auth/change-password
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
password | string | required|string|min:6 | Current password |
password_new | string | required|string|min:6 | New password |
password_new_confirmation | string | required|string|min:6 | Confirmation, must equal password_new |
Change avatar
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/auth/change-avatar",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"avatar": "{file}"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
POST api/v1/admin/auth/change-avatar
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
avatar | file | required|mimes:jpeg,png|max:2mb |
Categoria de pecas
Get all categoria de peças
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/categoria-pecas",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/categoria-pecas
Permission required
categoriapeca.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id nome codigo created_at |
search | string | string | Search in the fields: nome codigo |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Create Peça
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/categoria-pecas",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"nome": "Quis et in perferendis.",
"is_active": "1"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/categoria-pecas
Permission required
categoriapeca.create
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
nome | string | required|string|max:191 | |
is_active | boolean | boolean | Default true |
Export peças
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/categoria-pecas/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/categoria-pecas/export
Permission required
categoriapeca.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id nome codigo |
search | string | string | Search in the fields: uuid nome codigo |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get Peça
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/categoria-pecas/{categoriapeca}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/categoria-pecas/{categoriapeca}
Permission required
categoriapeca.show
Update peça
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/categoria-pecas/{categoriapeca}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"nome": "Pariatur sit eum eveniet repudiandae.",
"is_active": "1"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/categoria-pecas/{categoriapeca}
Permission required
pecas.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
nome | string | required|string|max:191 | |
is_active | boolean | boolean | Default true |
Remove peça
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/categoria-pecas/{categoriapeca}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/categoria-pecas/{categoriapeca}
Permission required
categoriapeca.delete
Dashboard
Get summary of data
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/dashboard",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/dashboard
Diario
Get all diarios
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/diario",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/diario
Permission required
diario.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id nome is_active created_at |
search | string | string | Search in the fields: nome logradouro |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get diario
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/diario/{diario}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/diario/{diario}
Permission required
diario.show
Update diario
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/diario/{diario}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"ocorrencia": "Maiores sunt autem atque voluptate doloribus magnam ipsum.",
"condicao_manha": "Tenetur aut corporis sapiente eaque error fugit.",
"condicao_tarde": "Est rerum qui praesentium earum libero occaecati unde vel.",
"prejudicou_obra": "0",
"is_active": "0"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/diario/{diario}
Permission required
diario.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
ocorrencia | string | string|max:400 | |
condicao_manha | string | string|max:10 | |
condicao_tarde | string | string|max:10 | |
prejudicou_obra | boolean | boolean | Default true |
is_active | boolean | boolean | Default true |
Remove diario
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/diario/{diario}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/diario/{diario}
Permission required
diario.delete
Equipamentos
Get all equipamentos
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/equipamentos",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/equipamentos
Permission required
equipamentos.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id nome codigo marca modelo fabricante created_at |
search | string | string | Search in the fields: nome codigo marca modelo fabricante |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Create Equipamento
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/equipamentos",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"nome": "Minus et quis ea est qui vel mollitia.",
"codigo": "Consectetur expedita amet ipsum porro.",
"marca": "Fuga est est ad soluta tenetur distinctio.",
"modelo": "Maiores ratione molestiae deserunt a.",
"fabricante": "Sit enim impedit accusamus ut consequatur.",
"quantidade": "1",
"is_active": "0"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/equipamentos
Permission required
equipamentos.create
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
nome | string | required|string|max:191 | |
codigo | string | required|string|max:191 | |
marca | string | required|string|max:191 | |
modelo | string | required|string|max:191 | |
fabricante | string | required|string|max:191 | |
quantidade | required|integer | integer | |
is_active | boolean | boolean | Default true |
Export equipamentos
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/equipamentos/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/equipamentos/export
Permission required
equipamento.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id nome codigo marca modelo fabricante created_at |
search | string | string | Search in the fields: nome codigo marca modelo fabricante |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get Equipamento
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/equipamentos/{equipamento}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/equipamentos/{equipamento}
Permission required
equipamentos.show
Update equipamento
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/equipamentos/{equipamento}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"nome": "Omnis repellat omnis eum deserunt.",
"codigo": "Assumenda autem voluptate est consectetur deserunt tenetur maxime.",
"marca": "Qui voluptatem quis doloremque et.",
"modelo": "Earum quod quisquam labore sit dignissimos a.",
"fabricante": "Exercitationem facere rerum deserunt ea porro omnis.",
"quantidade": "1",
"is_active": "1"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/equipamentos/{equipamento}
Permission required
equipamentos.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
nome | string | sometimes|nullable|string|max:191 | |
codigo | string | sometimes|nullable|string|max:191 | |
marca | string | sometimes|nullable|string|max:191 | |
modelo | string | sometimes|nullable|string|max:191 | |
fabricante | string | sometimes|nullable|string|max:191 | |
quantidade | sometimes|nullable|integer | integer | |
is_active | boolean | sometimes|nullable|boolean | Default true |
Remove equipamento
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/equipamentos/{equipamento}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/equipamentos/{equipamento}
Permission required
equipamento.delete
Equipes
Get all Equipes
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/equipe",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/equipe
Permission required
equipe.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id name email avatar is_active created_at updated_at |
search | string | string | Search in the fields: uuid name email |
obra | string | string | |
is_active | integer | integer | Available values: 0 1 |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Export Equipes
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/equipe/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/equipe/export
Permission required
equipe.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id name email avatar is_active created_at updated_at |
search | string | string | Search in the fields: uuid name email |
is_active | integer | integer | Available values: 0 1 |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Faq
Get all faq
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/faq",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/faq
Permission required
faq.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id name order is_active created_at updated_at |
search | string | string | Search in the fields: uuid name |
is_active | integer | integer | Available values: 0 1 |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Create faq
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/faq",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"name": "Eos illo magnam modi eius minima velit autem.",
"text": "O que se approximava o tempo. Voc\u00ea ainda era pequenino, j\u00e1 ella contava a denuncia de Jos\u00e9 Dias, n\u00e3o tendo presente o valor deste outro elogio, gostava do elogio; era um nadinha mais alta que eu, receioso disso mesmo, buscasse agora raz\u00f5es para animal-a. Capit\u00fa, quando havia chamado minha m\u00e3e os meus nervos me disseram que homens n\u00e3o s\u00e3o os chamados, poucos os escolhidos.\u00bb Deus recebe em ouro, Satanaz em papel. --Tem gra\u00e7a... --Gra\u00e7a? bradou elle com furia; mas aquietou-se logo, e sua m\u00e3e de um tempo n\u00e3o marcado, agarrei-me definitivamente aos cabellos de Capit\u00fa, mas ent\u00e3o seria preciso confessar-lhe que estivera \u00e1 escuta, atraz da porta. A casa em que ella manda; estou prompto a dividir comtigo os direitos de autor. Foi talvez um mal abortado, um pesadelo extincto; todos os noites que \u00e9 em desespero; negocio de relatorio. Voc\u00ea j\u00e1 viu o meu gosto, todos os seculos dos seculos, tecer duas tran\u00e7as que pudessem envolver o infinito por um latim que ninguem apprende, e \u00e9 a melhor. --Um mo\u00e7o sem gosto nenhum \u00e1 vida ecclesiastica \u00e9 a mesma cousa. Padua solicitava do sacrist\u00e3o uma das varas do pallio. Jos\u00e9 Dias pediu uma para si. --Ha s\u00f3 uma dispon\u00edvel, disse o sacrist\u00e3o. --Pois essa, disse Jos\u00e9 Dias. --Obede\u00e7o, minha senhora. Teve um pequeno discurso em honra \u00abao cora\u00e7\u00e3o paternal e augustissimo de Pio IX, grandes esperan\u00e7as da Italia; mas ninguem pegou do pente e alisou os cabellos iam acabando, por mais acanhada que fosse; mas o padre Cabral me ensinava latim, doutrina e historia sagrada, elle assistia \u00e1s lic\u00e7\u00f5es, fazia reflex\u00f5es ecclesiasticas, e, no fim, perguntava ao padre: \u00abN\u00e3o \u00e9 verdade que tambem sentia a secreta esperan\u00e7a de vel-a atirar-se a mim lavada em lagrimas. Capit\u00fa limitou-se a arregalar muito os olhos, Capit\u00fa. Tinha-me lembrado a defini\u00e7\u00e3o que Jos\u00e9 Dias alvoro\u00e7ara-me, a lic\u00e7\u00e3o de latim; o padre Cabral explicou que n\u00e3o poderia falar claramente, tinha agora a vista n\u00e3o sei se diga com amor. Um dia appareceu alli vendendo-se por medico homeopatha; levava um.",
"order": 10,
"is_active": "0"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/faq
Permission required
faq.create
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
name | string | required|string|max:191 | |
text | string | nullable|string|max:10000 | |
order | integer | required|integer | |
is_active | boolean | boolean | Default true |
Get additional information
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/faq/additional-information",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"next_order": 5
}
HTTP Request
GET api/v1/admin/faq/additional-information
Export faq
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/faq/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/faq/export
Permission required
faq.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id name order is_active created_at updated_at |
search | string | string | Search in the fields: uuid name email |
is_active | integer | integer | Available values: 0 1 |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get faq
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/faq/{faq}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/faq/{faq}
Permission required
faq.show
Update faq
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/faq/{faq}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"name": "Quos non ea a facilis quod.",
"text": "Quis aut maiores quia. Aut expedita necessitatibus ad quia voluptas atque eaque. Expedita ut esse incidunt.",
"order": 11,
"is_active": "0"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/faq/{faq}
Permission required
faq.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
name | string | string|max:191 | |
text | string | nullable|string|max:10000 | |
order | integer | required|integer | |
is_active | boolean | boolean |
Remove faq
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/faq/{faq}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/faq/{faq}
Permission required
faq.delete
How It Works
Get all how it works
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/how-it-works",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/how-it-works
Permission required
how-it-works.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id name order is_active created_at updated_at |
search | string | string | Search in the fields: uuid name |
is_active | integer | integer | Available values: 0 1 |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Create how it works
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/how-it-works",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"name": "Velit cupiditate doloremque amet et ab.",
"text": "Engenho Novo, reproduzindo a de Matacavallos... A imagina\u00e7\u00e3o foi a vez da grossa parede espiritual e eterna. Prometti falar a sua homoepathia de Cantagallo. Um dia, Capit\u00fa quiz saber o que era, fez-se c\u00f4r de c\u00eara. --Mas eu tinha \u00e1 vida ecclesiastica \u00e9 a que me mato de saudades, se voc\u00ea gostaria de ser bispo, dizem... Deixa de manha, Bentinho. Creio que prima Justtina lh'o ensinasse. Se n\u00e3o estudou latim com o resto de ideias publicas e especificas. Agora s\u00f3 cumpria as obriga\u00e7\u00f5es do officio e sem amor. Nas horas de lazer vivia olhando ou jogava. Uma ou outra vez andado, subimos ao terra\u00e7o, e olh\u00e1mos para o Rio de Janeiro, e talvez italiano, que ensine esta verdade aos homens. Tudo \u00e9 que eu n\u00e3o estou defendendo ninguem, estou citando. O que se l\u00e8 na cara do ambos \u00e9 que, repetindo-as novamente, sa\u00edram-me quasi supplices. Bastava n\u00e3o carregar tanto, nem ado\u00e7ar muito, um meio termo. \u00abE Capit\u00fa tem raz\u00e3o, pensei, a casa dos tres viuvos. A fortuna troca muita vez o sentido por um lampi\u00e3o. Quiz saber a conversa\u00e7\u00e3o da minha vara; e, como j\u00e1 conhecia a distancia, e agora no milhar. Era um coqueiro velho, e eu \u00e9ramos pequenos. A porta n\u00e3o tinha voz, mas teimava em querer a vara, tudo isto em voz alta: --Mas, Bentinho, que \u00f3 protonotario apostolico? --Ora, vivam! exclamou o pae. --Que susto, meu Deus! Agora \u00e9 que elle fale mal de mim e escanchou-me em cima da cama. \u00abEsta \u00e9 a mais doce \u00e9 esta, a mais nova, a mais santa... Porque n\u00e3o ha falta de vontade, irei falar a Jos\u00e9 Dias amava os superlativos. Era um velho pente de tartaruga; alguma vez trazia touca branca de f\u00f3lhos. Lidava assim, com os bra\u00e7os no ar; ouvi distinctamente o meu homem. Era a primeira palavra, a semente lan\u00e7ada \u00e1 terra, assim de cigana obliqua e dissimulada. Pois, apesar delles, poderia passar, se n\u00e3o trocara uns por outros. E insistia em que moravamos. Verdadeiramente foi o principio dos tempos. E, piscando-me o olho, concluiu: --A voca\u00e7\u00e3o \u00e9 tudo. O estado ecclesiastico \u00e9 perfeitissimo, comtanto que o.",
"order": 11,
"is_active": "1"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/how-it-works
Permission required
how-it-works.create
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
name | string | required|string|max:191 | |
text | string | nullable|string|max:10000 | |
order | integer | required|integer | |
is_active | boolean | boolean | Default true |
Get additional information
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/how-it-works/additional-information",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"next_order": 5
}
HTTP Request
GET api/v1/admin/how-it-works/additional-information
Export how it works
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/how-it-works/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/how-it-works/export
Permission required
how-it-works.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id name order is_active created_at updated_at |
search | string | string | Search in the fields: uuid name email |
is_active | integer | integer | Available values: 0 1 |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get how it works
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/how-it-works/{how_it_works}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/how-it-works/{how_it_works}
Permission required
how-it-works.show
Update how it works
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/how-it-works/{how_it_works}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"name": "Perspiciatis ea dolorum minus nihil.",
"text": "Quo cum accusamus similique consequatur hic et. Qui deserunt tenetur enim id porro numquam et. Deserunt eveniet cumque laborum laborum. Ipsum impedit deleniti quae ab et dolorum suscipit.",
"order": 9,
"is_active": "1"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/how-it-works/{how_it_works}
Permission required
how-it-works.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
name | string | string|max:191 | |
text | string | nullable|string|max:10000 | |
order | integer | required|integer | |
is_active | boolean | boolean |
Remove how it works
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/how-it-works/{how_it_works}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/how-it-works/{how_it_works}
Permission required
how-it-works.delete
Lideres de equipe
Get all lideres
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/lider",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/lider
Permission required
lider.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id nome tipo_sociedade data_filiacao is_active created_at updated_at |
search | string | string | Search in the fields: uuid name email documento representante_legal rg representante rg/inscricao |
is_active | integer | integer | Available values: 0 1 |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Create lider
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/lider",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"name": "Vel animi dicta quia ratione molestiae unde.",
"avatar": "{file}",
"cidade": "bac9aadb-82d0-320e-968d-d7cdeede16a4",
"email": "kesia.esteves@example.com",
"password": "123456",
"street": "Mollitia velit quam omnis qui.",
"district": "Illo et error ut saepe.",
"zipcode": "Corrupti accusamus illo necessitatibus in nesciunt.",
"number": "Qui perferendis natus debitis voluptas.",
"complement": "Est ut sunt in similique.",
"phone": "Neque voluptates sunt quibusdam repellendus sint hic.",
"is_active": "0"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/lider
Permission required
lider.create
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
name | string | required|string|max:191 | |
avatar | file | mimes:jpg,jpeg,png|max:4mb | |
cidade | string | string|max:191 | |
required|string|email|max:191 | |||
password | string | required|string|min:6 | |
street | string | nullable|string|max:191 | |
district | string | nullable|string|max:191 | |
zipcode | string | nullable|string|max:191 | |
number | string | nullable|string|max:191 | |
complement | nullable|string | string|max:191 | |
phone | string | nullable|string|max:191 | |
is_active | boolean | boolean |
Get all lideres excluidos
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/lider/deleted",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/lider/deleted
Permission required
lider.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id nome tipo_sociedade data_filiacao is_active created_at updated_at |
search | string | string | Search in the fields: uuid name email documento representante_legal rg representante rg/inscricao |
is_active | integer | integer | Available values: 0 1 |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Export lideres
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/lider/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/lider/export
Permission required
lider.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id name is_active created_at updated_at |
search | string | string | Search in the fields: uuid name cpf tipo_sociedade |
is_active | integer | integer | Available values: 0 1 |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Autocomplete lider
List a maximum of 50
items.
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/lider/autocomplete",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/lider/autocomplete
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id name created_at updated_at |
search | string | string | Search in the fields: uuid name |
is_active | integer | integer | Available values: 0 1 |
Get lider
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/lider/{customer}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/lider/{customer}
Permission required
lider.show
Update lider
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/lider/{customer}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"name": "Assumenda dolores ratione ut voluptatem assumenda quas sunt.",
"avatar": "{file}",
"cidade": "ae2c1e60-1871-3313-93e1-bd546a7c3b06",
"email": "domingues.valeria@example.net",
"street": "Consequuntur voluptatem et occaecati repudiandae in.",
"district": "Quis et ratione impedit expedita quidem dicta.",
"zipcode": "Quas quidem ut nisi eum itaque.",
"number": "Corporis voluptas esse ducimus omnis.",
"complement": "Est unde doloremque maiores.",
"phone": "Autem sequi dolor ratione reiciendis voluptas.",
"is_active": "1"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/lider/{customer}
Permission required
lider.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
name | string | nullable|string|max:191 | |
avatar | file | nullable|mimes:jpg,jpeg,png|max:4mb | |
cidade | string | nullable|string|max:191 | |
nullable|string|email|max:191 | |||
street | string | nullable|string|max:191 | |
district | string | nullable|string|max:191 | |
zipcode | string | nullable|string|max:191 | |
number | string | nullable|string|max:191 | |
complement | string | nullable|string|max:191 | |
phone | string | nullable|string|max:191 | |
is_active | boolean | nullable|boolean |
Remove lider
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/lider/{customer}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/lider/{customer}
Permission required
lider.delete
Log
Get all logs
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/logs",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/logs
Permission required
log.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id user_id log_type log_id log_name message action ip user_agent url method created_at |
search | string | string | Search in the fields: uuid user_id log_type log_id log_name message action ip user_agent url method |
Export logs
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/logs/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/logs/export
Permission required
log.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id user_id log_type log_id log_name message action ip user_agent url method created_at |
search | string | string | Search in the fields: uuid user_id log_type log_id log_name message action ip user_agent url method |
Get log
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/logs/{log}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/logs/{log}
Permission required
log.show
Obra
Export Obra
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/obra/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/obra/export
Permission required
obra.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id nome is_active created_at |
search | string | string | Search in the fields: nome logradouro |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get all obras
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/obra",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/obra
Permission required
obra.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id nome is_active created_at |
search | string | string | Search in the fields: nome logradouro |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Create obra
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/obra",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"nome": "Et libero atque voluptas unde nulla molestiae.",
"metragem_total": "Occaecati culpa et culpa et itaque.",
"customers[]": "a5ed5975-c9c2-3f98-a2e1-f030e8df1436",
"cidade": "e553545f-5fbd-3bb2-b607-f9d5d9423061",
"logradouro": "Maxime quia consequuntur delectus et ut libero doloribus.",
"cep": "Tempora incidunt rerum delectus fugit assumenda tempora.",
"bairro": "A quis veritatis aut culpa ut.",
"numero": "Vitae sapiente at quidem quia.",
"status": "`Para",
"data_inicio": "2024-07-29T00:00:00-03:00",
"data_fim": "2024-07-29T23:59:59-03:00",
"is_active": "1",
"nome_etapa[]": "Saepe et itaque qui.",
"dias_etapa[]": 7,
"porcentagem_etapa[]": 6,
"categoria_pecas[]": "Quae minima aut velit ut omnis veritatis.",
"montadas[]": 3,
"descarregadas[]": 7,
"tamanho[]": "Nemo eligendi qui nisi assumenda natus."
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/obra
Permission required
obra.create
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
nome | string | required|string|max:191 | |
metragem_total | decimal | required | |
customers[] | array | required|array | |
cidade | string | nullable|string|max:191 | |
logradouro | string | string|max:191 | |
cep | string | string|max:191 | |
bairro | string | string|max:191 | |
numero | string | string|max:191 | |
status | string | string | iniciar) Available values: Para iniciar`Andamento Entregue Parado Na fila Pausada |
data_inicio | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
data_fim | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
is_active | boolean | boolean | Default true |
nome_etapa[] | array | required|array | (max: 191 caracteres) Array de nome da etapa |
dias_etapa[] | array | required|array | Array de dias previsto da etapa, mesma ordem do array de nome_etapa |
porcentagem_etapa[] | array | required|array | Array da porcentagem que a etapa representa na obra, mesma ordem do array de nome_etapa |
categoria_pecas[] | array | sometimes|nullable|array | (max: 191 caracteres) Array de nome de categoria de pecas |
montadas[] | array | sometimes|nullable|array | Array de dias previsto da etapa, mesma ordem do array de categoria_pecas |
descarregadas[] | array | sometimes|nullable|array | Array da porcentagem que a etapa representa na obra, mesma ordem do array de categoria_pecas |
tamanho[] | array | sometimes|nullable|array | Array da porcentagem que a etapa representa na obra, mesma ordem do array de categoria_pecas |
Get obra
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/obra/{obra}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/obra/{obra}
Permission required
obra.show
Update obra
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/obra/{obra}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"nome": "Minus quidem provident sit.",
"metragem_total": "Voluptatem veniam et harum est voluptatem.",
"cidade": "6108f61a-141f-3928-82c9-5aa0af34c920",
"uf": "cb29ed14-9238-3ab4-b039-4eb5b1dac147",
"logradouro": "Sed est perferendis iusto voluptatem accusamus error eius.",
"customers[]": "bf227274-ea40-3812-8867-1b53b587372f",
"cep": "Aut enim sint doloremque quos nemo excepturi.",
"bairro": "Et asperiores nisi consequatur et et saepe.",
"numero": "Non rem quae aut deleniti et sunt et.",
"status": "`Para",
"data_inicio": "2024-07-29T00:00:00-03:00",
"data_fim": "2024-07-29T23:59:59-03:00",
"is_active": "0",
"id_etapa[]": "9a5c4711-6439-38e0-ba1e-a7070e2b8a02",
"nome_etapa[]": "Est dolor odio minima voluptas et enim.",
"dias_etapa[]": 3,
"order_etapa[]": 8,
"porcentagem_etapa[]": 6,
"categoria_pecas[]": "Ea non molestiae omnis consequatur minus ut et ipsam.",
"montadas[]": 3,
"descarregadas[]": 8,
"tamanho[]": "Deleniti et quia ab est sit est."
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/obra/{obra}
Permission required
obra.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
nome | string | nullable|string|max:191 | |
metragem_total | decimal | required | |
cidade | string | nullable|string|max:191 | |
uf | string | nullable|string|max:191 | |
logradouro | string | string|max:191 | |
customers[] | array | nullable|array | |
cep | string | string|max:191 | |
bairro | string | string|max:191 | |
numero | string | string|max:191 | |
status | string | string | iniciar) Available values: Para iniciar`Andamento Entregue Parado Na fila Pausada |
data_inicio | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
data_fim | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
is_active | boolean | boolean | Default true |
id_etapa[] | array | nullable|array | Array dos uuid das etapas |
nome_etapa[] | array | nullable|array | (max: 191 caracteres) Array de nome da etapa |
dias_etapa[] | array | nullable|array | Array de dias previsto da etapa, mesma ordem do array de nome_etapa |
order_etapa[] | array | nullable|array | Array da porcentagem que a etapa representa na obra, mesma ordem do array de nome_etapa |
porcentagem_etapa[] | array | nullable|array | Array da porcentagem que a etapa representa na obra, mesma ordem do array de nome_etapa |
categoria_pecas[] | array | nullable|array | (max: 191 caracteres) Array de nome de categoria de pecas |
montadas[] | array | nullable|array | Array de dias previsto da etapa, mesma ordem do array de categoria_pecas |
descarregadas[] | array | nullable|array | Array da porcentagem que a etapa representa na obra, mesma ordem do array de categoria_pecas |
tamanho[] | array | nullable|array | Array da porcentagem que a etapa representa na obra, mesma ordem do array de categoria_pecas |
Remove obra
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/obra/{obra}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/obra/{obra}
Permission required
obra.delete
OnBoarding
Get all onboardings
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/onboarding",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/onboarding
Permission required
onboarding.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id frase frase2 created_at |
search | string | string | Search in the fields: frase frase2 |
Create onboarding
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/onboarding",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"frase": "Architecto suscipit id a aliquid maiores consequuntur.",
"frase2": "Voluptas nostrum est molestiae et velit est.",
"ordem": "1",
"is_active": "0",
"file": "{file}"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/onboarding
Permission required
onboarding.create
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
frase | string | required|string|max:191 | |
frase2 | string | string|max:191 | |
ordem | integer | integer | |
is_active | boolean | boolean | Default true |
file | file | mimes:jpg,jpeg,png,mp4,avi,mov,webm,mpg,ogg,mkv,flv|max:8mb |
Get additional information
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/onboarding/additional-information",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"next_order": 5
}
HTTP Request
GET api/v1/admin/onboarding/additional-information
Get onboarding
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/onboarding/{onboarding}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/onboarding/{onboarding}
Permission required
onboarding.show
Update onboarding
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/onboarding/{onboarding}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"frase": "Est molestiae rerum laboriosam vitae doloribus sed.",
"frase2": "Est placeat unde possimus maxime praesentium.",
"ordem": "1",
"is_active": "0",
"file": "{file}"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/onboarding/{onboarding}
Permission required
onboarding.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
frase | string | nullable|string|max:191 | |
frase2 | string | nullable|string|max:191 | |
ordem | integer | nullable|integer | |
is_active | boolean | nullable|boolean | Default true |
file | file | mimes:jpg,jpeg,png,mp4,avi,mov,webm,mpg,ogg,mkv,flv|max:8mb |
Remove onboarding
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/onboarding/{onboarding}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/onboarding/{onboarding}
Permission required
onboarding.delete
Pecas
Get all peças
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/pecas",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/pecas
Permission required
peca.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id nome codigo created_at |
search | string | string | Search in the fields: nome codigo |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Create Peça
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/pecas",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"nome": "Velit quia et ex explicabo assumenda enim.",
"categoriapeca_id": "2cf7668c-f08f-3f74-a093-fefa7c3a2175",
"codigo": "Aut animi ut eum quidem tenetur voluptate dolorum.",
"peso": "Enim ipsa illo ut nihil officiis autem et.",
"tamanho": "Rem sint aliquam distinctio est et qui.",
"estoque": "1",
"qtd_caminhao": "1",
"is_active": "1"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/pecas
Permission required
peca.create
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
nome | string | required|string|max:191 | |
categoriapeca_id | string | required|string|max:191 | |
codigo | string | required|string|max:191 | |
peso | numeric | required | |
tamanho | numeric | required | |
estoque | required|integer | integer | |
qtd_caminhao | required|integer | integer | |
is_active | boolean | boolean | Default true |
Export peças
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/pecas/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/pecas/export
Permission required
peca.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id nome codigo |
search | string | string | Search in the fields: uuid nome codigo |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get Peça
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/pecas/{peca}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/pecas/{peca}
Permission required
peca.show
Update peça
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/pecas/{peca}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"nome": "Sint nisi autem quod blanditiis velit.",
"categoriapeca_id": "fecd4288-9cf9-366f-9a6b-4beac4914a5e",
"codigo": "Quia dolorem alias porro enim cum voluptas.",
"peso": "Veritatis optio ut quia doloremque voluptas ut non.",
"tamanho": "Sapiente a praesentium maxime asperiores veniam voluptate.",
"estoque": "1",
"qtd_caminhao": "1",
"is_active": "0"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/pecas/{peca}
Permission required
pecas.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
nome | string | sometimes|nullable|string|max:191 | |
categoriapeca_id | string | required|string|max:191 | |
codigo | string | sometimes|nullable|string|max:191 | |
peso | numeric | sometimes|nullable | |
tamanho | numeric | sometimes|nullable | |
estoque | sometimes|nullable|integer | integer | |
qtd_caminhao | sometimes|nullable|integer | integer | |
is_active | boolean | sometimes|nullable|boolean | Default true |
Remove peça
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/pecas/{peca}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/pecas/{peca}
Permission required
peca.delete
Permissions
Autocomplete permissions
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/permissions/autocomplete",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/permissions/autocomplete
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id key name group order created_at updated_at |
search | string | string | Search in the fields: uuid key name group |
Privacy Policy
Get privacy policy
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/privacy-policy",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/privacy-policy
Permission required
privacy-policy.edit
Update privacy policy
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/privacy-policy",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"name": "Blanditiis dolores architecto quod vel voluptas.",
"text": "Qui aut ipsum nostrum et. Repellendus saepe reprehenderit sed odio voluptates quos qui. Nostrum tenetur facilis quis ab. Eum amet ut eveniet quos quis."
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/privacy-policy
Permission required
privacy-policy.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
name | string | string|max:191 | |
text | string | nullable|string|max:60000 | HTML allowed |
Profissional
Get all profissional
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/profissional",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/profissional
Permission required
profissional.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id name email avatar is_active created_at updated_at |
search | string | string | Search in the fields: uuid name email |
is_active | integer | integer | Available values: 0 1 |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Create profissional
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/profissional",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"avatar": "{file}",
"name": "Srta. Alessandra Balestero Neto",
"documento": "A quos corporis asperiores atque exercitationem fugiat ut.",
"cidade": "ff55ab96-8c10-3d7b-b8b1-747bb7ad9763",
"email": "betina07@example.net",
"phone": "Illo autem nemo suscipit sit tempora sunt sint.",
"zipcode": "Rerum nulla fuga quia aliquid.",
"street": "Possimus voluptatem possimus illum ut reprehenderit repudiandae earum.",
"number": "Voluptas maiores ut ipsum dolorum non quas amet libero.",
"complement": "Voluptas est velit est ad.",
"district": "Delectus voluptas aut enim sed sed.",
"is_active": "0"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/profissional
Permission required
profissional.create
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
avatar | string | nullable|mimes:jpeg,png|max:4000 | |
name | string | required|string|max:50 | |
documento | string | required|string|max:191 | |
cidade | string | nullable|string|max:191 | |
string | required|string|email|max:100 | ||
phone | string | nullable|string|max:191 | |
zipcode | string | nullable|string|max:191 | |
street | string | nullable|string|max:191 | |
number | string | nullable|string|max:191 | |
complement | string | nullable|string|max:191 | |
district | string | nullable|string|max:191 | |
is_active | boolean | nullable|boolean | Default true |
Get all profissional
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/profissional/deleted",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/profissional/deleted
Permission required
profissional.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id name email avatar is_active created_at updated_at |
search | string | string | Search in the fields: uuid name email |
is_active | integer | integer | Available values: 0 1 |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Export profissional
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/profissional/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/profissional/export
Permission required
profissional.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id name email avatar is_active created_at updated_at |
search | string | string | Search in the fields: uuid name email |
is_active | integer | integer | Available values: 0 1 |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get profissional
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/profissional/{profissional}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/profissional/{profissional}
Permission required
profissional.show
Update profissional
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/profissional/{profissional}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"name": "Stephany Caldeira de Arruda Jr.",
"documento": "Ut neque eligendi omnis distinctio.",
"cidade": "9b77c6ff-0fe1-3d5f-bf08-d187524b47cc",
"email": "amelia.maia@example.org",
"phone": "Esse aut quis beatae praesentium non voluptatem.",
"zipcode": "Totam quae fuga corrupti eum.",
"street": "Labore eligendi quibusdam corrupti.",
"number": "Ipsam eos pariatur officiis.",
"complement": "In doloremque temporibus quis rerum sequi tenetur omnis.",
"district": "Id alias doloremque ea voluptatibus velit ab.",
"is_active": "0"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/profissional/{profissional}
Permission required
profissional.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
name | string | sometime|nullable|string|max:50 | |
documento | string | sometime|nullable|string|max:191 | |
cidade | string | nullable|string|max:191 | |
string | sometime|nullable|string|email|max:100 | ||
phone | string | sometime|nullable|string|max:191 | |
zipcode | string | sometime|nullable|string|max:191 | |
street | string | sometime|nullable|string|max:191 | |
number | string | sometime|nullable|string|max:191 | |
complement | string | sometime|nullable|string|max:191 | |
district | string | sometime|nullable|string|max:191 | |
is_active | boolean | boolean | Default true |
Remove profissional
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/profissional/{profissional}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/profissional/{profissional}
Permission required
profissional.delete
Push City
Get all push
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/push-city",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/push-city
Permission required
push-city.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id title body scheduled_at send_at created_at city.name |
search | string | string | Search in the fields: uuid title body city.name |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Create push
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/push-city",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"city_id": "2",
"title": "Nobis dolores quidem ut aut.",
"body": "Quae quia et eligendi iure aut rerum explicabo. Vero itaque corporis aut et impedit nulla atque.",
"url": "http:\/\/www.balestero.com.br\/",
"scheduled_at": "2019-07-29T23:59:59-03:00"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/push-city
Permission required
push-city.create
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
city_id | integer | required|integer | City relationship |
title | string | required|string|max:50 | |
body | string | required|string|max:100 | |
url | string | nullable|string|max:191 | |
scheduled_at | string | nullable|string | ISO 8601 Y-m-d\TH:i:sP Future date |
Export push
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/push-city/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/push-city/export
Permission required
push-city.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id title body scheduled_at send_at created_at city.name |
search | string | string | Search in the fields: uuid title body city.name |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get push
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/push-city/{push}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/push-city/{push}
Permission required
push-city.show
Remove push
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/push-city/{push}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/push-city/{push}
Permission required
push-city.delete
Push General
Get all push
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/push-general",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/push-general
Permission required
push-general.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id title body scheduled_at send_at created_at |
search | string | string | Search in the fields: uuid title body |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Create push
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/push-general",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"title": "Quo nobis dolores rerum excepturi.",
"body": "Est nihil ea est qui nihil modi facilis. Doloremque et sit itaque. Et laboriosam impedit ea.",
"url": "http:\/\/dasneves.com\/ipsa-qui-blanditiis-quisquam-vel.html",
"scheduled_at": "2019-07-29T23:59:59-03:00"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/push-general
Permission required
push-general.create
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
title | string | required|string|max:50 | |
body | string | required|string|max:100 | |
url | string | nullable|string|max:191 | |
scheduled_at | string | nullable|string | ISO 8601 Y-m-d\TH:i:sP Future date |
Export push
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/push-general/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/push-general/export
Permission required
push-general.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id title body scheduled_at send_at created_at |
search | string | string | Search in the fields: uuid title body |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get push
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/push-general/{push}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/push-general/{push}
Permission required
push-general.show
Remove push
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/push-general/{push}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/push-general/{push}
Permission required
push-general.delete
Push State
Get all push
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/push-state",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/push-state
Permission required
push-state.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id title body scheduled_at send_at created_at state.name |
search | string | string | Search in the fields: uuid title body state.name |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Create push
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/push-state",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"state_id": "2",
"title": "Non delectus est cumque illo mollitia corporis.",
"body": "Sunt et sapiente esse dolorum cum. Optio eveniet vel perspiciatis ad et sunt.",
"url": "http:\/\/rodrigues.com\/",
"scheduled_at": "2019-07-29T23:59:59-03:00"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/push-state
Permission required
push-state.create
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
state_id | integer | required|integer | State relationship |
title | string | required|string|max:50 | |
body | string | required|string|max:100 | |
url | string | nullable|string|max:191 | |
scheduled_at | string | nullable|string | ISO 8601 Y-m-d\TH:i:sP Future date |
Export push
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/push-state/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/push-state/export
Permission required
push-state.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id title body scheduled_at send_at created_at state.name |
search | string | string | Search in the fields: uuid title body state.name |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get push
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/push-state/{push}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/push-state/{push}
Permission required
push-state.show
Remove push
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/push-state/{push}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/push-state/{push}
Permission required
push-state.delete
Push User
Get all push
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/push-user",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/push-user
Permission required
push-user.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id title body scheduled_at send_at created_at user.name |
search | string | string | Search in the fields: uuid title body user.name |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Create push
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/push-user",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"user_id": "da6f4e37-26ef-37c9-aa4f-4336f027d0b3",
"title": "Quia qui culpa qui fuga omnis et rem.",
"body": "Nulla repellat consequatur maxime eos qui. Blanditiis et nulla est rerum ullam odit.",
"url": "http:\/\/rico.net.br\/",
"scheduled_at": "2019-07-29T23:59:59-03:00"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/push-user
Permission required
push-user.create
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
user_id | integer | required|uuid | Customer user relationship |
title | string | required|string|max:50 | |
body | string | required|string|max:100 | |
url | string | nullable|string|max:191 | |
scheduled_at | string | nullable|string | ISO 8601 Y-m-d\TH:i:sP Future date |
Export push
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/push-user/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/push-user/export
Permission required
push-user.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id title body scheduled_at send_at created_at user.name |
search | string | string | Search in the fields: uuid title body user.name |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get push
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/push-user/{push}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/push-user/{push}
Permission required
push-user.show
Remove push
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/push-user/{push}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/push-user/{push}
Permission required
push-user.delete
Rich Text Editor
Upload image
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/rich-text-editor/upload-image",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"upload": "{file}"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"url": "{url}"
}
HTTP Request
POST api/v1/admin/rich-text-editor/upload-image
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
upload | file | required|mimes:jpeg,png|max:2mb |
Roles
Get all roles
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/roles",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/roles
Permission required
roles.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id name description is_system created_at updated_at permissions_count users_count |
search | string | string | Search in the fields: uuid name description |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Create role
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/roles",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"name": "Manager",
"description": "Fuga at possimus nulla. Minus voluptas quibusdam earum minus ea quis.",
"permissions[0]": "38defe6a-ae82-3294-b4eb-4fa2074fc893"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/roles
Permission required
roles.create
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
name | string | required|string|max:50 | |
description | string | required|string|max:100 | |
permissions[] | array | required|array|min:1 | |
permissions[0] | uuid | required|uuid |
Autocomplete roles
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/roles/autocomplete",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/roles/autocomplete
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id name description is_system created_at updated_at |
search | string | string | Search in the fields: uuid name description |
Export roles
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/roles/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/roles/export
Permission required
roles.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id name description is_system created_at updated_at permissions_count users_count |
search | string | string | Search in the fields: uuid name description |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get role
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/roles/{role}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/roles/{role}
Permission required
roles.show
Update role
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/roles/{role}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"name": "Eius voluptatum ipsum vel.",
"description": "Quo optio ex quidem autem. Qui vel nostrum unde dolorem a. At assumenda est facilis velit non.",
"permissions[0]": "72f7ea67-2918-3094-aa28-2112e9b30ef8"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/roles/{role}
Permission required
roles.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
name | string | string|max:50 | |
description | string | required|string|max:100 | |
permissions[] | array | array|min:1 | |
permissions[0] | uuid | required|uuid |
Remove role
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/roles/{role}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/roles/{role}
Permission required
roles.delete
Settings General
Get settings
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/settings/general",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/settings/general
Permission required
settings-general.list
Update settings
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/settings/general",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"app_url_android": "https:\/\/play.google.com\/store\/apps\/details?id=com.facebook.katana",
"app_url_ios": "https:\/\/apps.apple.com\/br\/app\/facebook\/id284882215",
"email_support": "natan.pereira@example.org"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/settings/general
Permission required
settings-general.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
app_url_android | string | nullable|string|url | |
app_url_ios | string | nullable|string|url | |
email_support | string | string|email |
Settings Notifications
Get settings
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/settings/notifications",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/settings/notifications
Permission required
settings-notifications.list
Update settings
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/settings/notifications",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"report_a_problem[0]": "jose58@example.com"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/settings/notifications
Permission required
settings-notifications.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
report_a_problem[] | array | array|min:1 | |
report_a_problem[0] | string | required|email |
System Log
Get all logs
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/system-log",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/system-log
Permission required
system-log.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id message url created_at |
search | string | string | Search in the fields: uuid message url |
level | string | string | Available values: ALERT CRITICAL DEBUG EMERGENCY ERROR INFO NOTICE WARNING |
method | string | string | Available values: DELETE GET POST |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Export logs
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/system-log/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/system-log/export
Permission required
system-log.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id message url created_at |
search | string | string | Search in the fields: uuid message url |
level | string | string | Available values: ALERT CRITICAL DEBUG EMERGENCY ERROR INFO NOTICE WARNING |
method | string | string | Available values: DELETE GET POST |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get log
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/system-log/{log}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/system-log/{log}
Permission required
system-log.show
Terms Of Use
Get terms of use
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/terms-of-use",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/terms-of-use
Permission required
terms-of-use.edit
Update terms of use
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/terms-of-use",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"name": "Eos esse possimus architecto cupiditate exercitationem.",
"text": "Amet beatae tempora et quo aperiam. Neque aut expedita sed sed et dolores. Minus quos ut sapiente voluptatem porro optio. Commodi dicta ut veritatis vel."
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/terms-of-use
Permission required
terms-of-use.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
name | string | string|max:191 | |
text | string | nullable|string|max:60000 | HTML allowed |
Users
Get all users
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/users",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/users
Permission required
users.list
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
limit | integer | integer | Default: 20 Max: 100 |
page | integer | integer | |
orderBy | string | string | Default: id:asc .Available fields: id name email avatar is_active created_at updated_at |
search | string | string | Search in the fields: uuid name email |
is_active | integer | integer | Available values: 0 1 |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Create user
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/users",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"avatar": "{file}",
"name": "Sheila Abreu",
"password_random": "0",
"password": "123456",
"password_confirmation": "123456",
"email": "rafael71@example.net",
"is_active": "1",
"roles[0]": "5e19cd9b-44be-3314-ac1d-186180a0d187"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/users
Permission required
users.create
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
avatar | string | nullable|mimes:jpeg,png|max:4000 | |
name | string | required|string|max:50 | |
password_random | boolean | required|boolean | |
password | string | required_if:password_random,0|string|min:6 | |
password_confirmation | string | required_if:password_random,0|string|min:6 | Must contain the same value as password |
string | required|string|email|max:100 | ||
is_active | boolean | boolean | Default true |
roles[] | array | array|min:1 | |
roles[0] | uuid | required|uuid |
Autocomplete users
List a maximum of 50
items.
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/users/autocomplete",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/users/autocomplete
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id name created_at updated_at |
search | string | string | Search in the fields: uuid name |
is_active | integer | integer | Available values: 0 1 |
Export users
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/users/export",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
GET api/v1/admin/users/export
Permission required
users.export
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
orderBy | string | string | Default: id:asc .Available fields: id name email avatar is_active created_at updated_at |
search | string | string | Search in the fields: uuid name email |
is_active | integer | integer | Available values: 0 1 |
created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get user
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/users/{user}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/users/{user}
Permission required
users.show
Update user
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "http://147.182.218.201:8447/api/v1/admin/users/{user}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"is_active": "1",
"roles[0]": "23023f18-0a92-37f8-9e58-573c0962ce9b"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/admin/users/{user}
Permission required
users.edit
Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
is_active | boolean | boolean | |
roles[] | array | array|min:1 | |
roles[0] | uuid | required|uuid |
Remove user
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "http://147.182.218.201:8447/api/v1/admin/users/{user}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/admin/users/{user}
Permission required
users.delete
Webservice
Cities
Search city, must enter at least one of the search fields search
or state_abbr
List a maximum of 50
items.
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/webservice/cities",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/webservice/cities
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
search | string | string | Search in the fields: full_name |
state_abbr | string | string |
States
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/webservice/states",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/webservice/states
Query Parameters
Parameter | Type | Validation | Description |
---|---|---|---|
search | string | string | Search in the fields: name |
Find zipcode
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "http://147.182.218.201:8447/api/v1/admin/webservice/zipcode/{zipcode}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/admin/webservice/zipcode/{zipcode}