Owner's Product List
OK
Add product to favorites
data
No Content
Remove product from favorites
const response = await fetch('//api.client.nbcgate.tech/api/product/favorite', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "id": 0, "name": "text" } ]
const response = await fetch('//api.client.nbcgate.tech/api/product/favorite', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify([ {} ]), }); const data = await response.json();
{ "errors": [ { "code": 0, "field": "text", "message": "text" } ], "message": "text", "statusCode": 0 }
const response = await fetch('//api.client.nbcgate.tech/api/product/favorite', { method: 'DELETE', headers: { "Content-Type": "application/json" }, body: JSON.stringify([ {} ]), }); const data = await response.json();