Last updated 11 months ago
Success
const response = await fetch('/api/app/customer', { method: 'GET', headers: {}, }); const data = await response.json();
{ "items": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "creationTime": "2024-11-27T19:32:17.908Z", "creatorId": "123e4567-e89b-12d3-a456-426614174000", "lastModificationTime": "2024-11-27T19:32:17.908Z", "lastModifierId": "123e4567-e89b-12d3-a456-426614174000", "isDeleted": false, "deleterId": "123e4567-e89b-12d3-a456-426614174000", "deletionTime": "2024-11-27T19:32:17.908Z", "name": "text", "mobileNumber": "text", "subscriptionStatus": 1, "statusString": "text", "branchId": "123e4567-e89b-12d3-a456-426614174000", "branchName": "text", "customerType": 1, "customerTypeString": "text", "address": "text", "crNumber": "text", "vatNumber": "text" } ] }
const response = await fetch('/api/app/customer/{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/customer', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
123e4567-e89b-12d3-a456-426614174000
const response = await fetch('/api/app/customer/{id}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "creationTime": "2024-11-27T19:32:17.908Z", "creatorId": "123e4567-e89b-12d3-a456-426614174000", "lastModificationTime": "2024-11-27T19:32:17.908Z", "lastModifierId": "123e4567-e89b-12d3-a456-426614174000", "isDeleted": false, "deleterId": "123e4567-e89b-12d3-a456-426614174000", "deletionTime": "2024-11-27T19:32:17.908Z", "name": "text", "mobileNumber": "text", "subscriptionStatus": 1, "statusString": "text", "branchId": "123e4567-e89b-12d3-a456-426614174000", "branchName": "text", "customerType": 1, "customerTypeString": "text", "address": "text", "crNumber": "text", "vatNumber": "text" }