Brand removed successfully
OK
Brand created successfully
Brand updated successfully
const response = await fetch('https://api.zydon.com.br/api/sales/brands/{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/brands/{id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "name": "text", "active": false, "images": [ { "resource_file_id": "123e4567-e89b-12d3-a456-426614174000", "main": false } ] }
const response = await fetch('https://api.zydon.com.br/api/sales/brands', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "items": [ { "id": "text", "name": "text", "active": false } ] }
const response = await fetch('https://api.zydon.com.br/api/sales/brands', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "active": false, "images": [ {} ], "name": "text" }), }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/brands/{id}', { method: 'PUT', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "active": false, "images": [ {} ], "name": "text" }), }); const data = await response.json();
{ "id": "text", "name": "text", "active": false, "image": [ { "resource_file_id": "123e4567-e89b-12d3-a456-426614174000", "main": false } ] }