Specification removed successfully
OK
Specification updated successfully
Specification created successfully
const response = await fetch('https://api.zydon.com.br/api/sales/categories/{category}/specification/{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/categories/{category}/specification/{id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "category_id": "text", "name": "text", "type": "text", "values": [ "text" ] }
const response = await fetch('https://api.zydon.com.br/api/sales/categories/{category}/specification', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/categories/{category}/specification/{id}', { method: 'PUT', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "id": "text", "name": "text", "type": "text", "values": [ "text" ] }), }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/categories/{category}/specification', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "id": "text", "name": "text", "type": "text", "values": [ "text" ] }), }); const data = await response.json();