Success
const response = await fetch('/api/app/product/{id}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "creationTime": "2024-11-27T19:48:09.538Z", "creatorId": "123e4567-e89b-12d3-a456-426614174000", "name": "text", "description": "text", "pricing": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "name": "text", "internalName": "text", "type": 1, "usageType": 1, "isUsageBased": false, "usageCalculationMethod": 1, "model": 1, "billingCycle": 1, "items": [ { "amount": 0, "fromQuantity": 0, "toQuantity": 0 } ] } ] }
const response = await fetch('/api/app/product/{id}', { method: 'PUT', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
{ "error": { "code": "text", "message": "text", "details": "text", "validationErrors": [ { "message": "text", "members": [ "text" ] } ] } }
const response = await fetch('/api/app/product/{id}', { method: 'DELETE', headers: {}, }); const data = await response.json();
const response = await fetch('/api/app/product', { method: 'GET', headers: {}, }); const data = await response.json();
{ "items": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "creationTime": "2024-11-27T19:48:09.538Z", "creatorId": "123e4567-e89b-12d3-a456-426614174000", "name": "text", "description": "text", "pricing": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "name": "text", "internalName": "text", "type": 1, "usageType": 1, "isUsageBased": false, "usageCalculationMethod": 1, "model": 1, "billingCycle": 1, "items": [ { "amount": 0, "fromQuantity": 0, "toQuantity": 0 } ] } ] } ] }
const response = await fetch('/api/app/product', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();