OK
MeasureUnit removed successfully
MeasureUnit created successfully
MeasureUnit updated successfully
const response = await fetch('https://api.zydon.com.br/api/sales/measure-units/{id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "abbreviation": "text", "description": "text", "decimals_for_quantity": 0, "active": false }
const response = await fetch('https://api.zydon.com.br/api/sales/measure-units/{id}', { method: 'DELETE', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text" }
const response = await fetch('https://api.zydon.com.br/api/sales/measure-units', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "abbreviation": "text", "active": false, "decimals_for_quantity": 0, "description": "text" }), }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/measure-units', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "currentPage": 0, "perPage": 0, "total": 0, "items": [ { "id": "text", "abbreviation": "text", "description": "text", "decimals_for_quantity": 0, "active": false } ] }
const response = await fetch('https://api.zydon.com.br/api/sales/measure-units/{id}', { method: 'PUT', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "abbreviation": "text", "active": false, "decimals_for_quantity": 0, "description": "text" }), }); const data = await response.json();