Customer service
This is the description of the service to individual customer resources
Methods:
Get one customer
Request:4>
Parameters: Not Defined
Parameter | kind | type | default | required | summary |
---|
Headers:
Field name | Value |
---|---|
Accept | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
Accept-Encoding | gzip, deflate |
Cookies: Not Defined
Responses:
200 - Successful execution
Headers:
Field name | Value |
---|---|
Content-Type | application/json |
Cookies: Not Defined
Test Cases:
Get Customer
Successfully retrieves one customer
Request:4>
Headers:
Field name | Value |
---|---|
Accept | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
Accept-Encoding | gzip, deflate |
Cookies: Not Defined
Response:4>
Headers:
Field name | Value |
---|---|
Content-Type | application/json |
Cookies: Not Defined
Delete a customer
Request:4>
Parameters:
Parameter | kind | type | default | required | summary |
---|---|---|---|---|---|
id | QUERY | number | 1 | true | The id of the customer record to be deleted |
Headers:
Field name | Value |
---|---|
Accept | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
Accept-Encoding | gzip, deflate |
Cookies: Not Defined
Responses:
200 - Successful execution
Headers:
Field name | Value |
---|---|
Content-Type | application/json |
Cookies: Not Defined
Test Cases:
Delete Customer
Successfully delete the customer
Request:4>
Headers:
Field name | Value |
---|---|
Accept | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
Accept-Encoding | gzip, deflate |
Cookies: Not Defined
Response:4>
Headers:
Field name | Value |
---|---|
Content-Type | application/json |
Cookies: Not Defined
Update a customer
Request:4>
Parameters:
Parameter | kind | type | default | required | summary |
---|---|---|---|---|---|
id | QUERY | number | 1 | true | The id of the customer record to be updated |
Headers:
Field name | Value |
---|---|
Accept | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
Accept-Encoding | gzip, deflate |
Cookies: Not Defined
Responses:
200 - Successful execution
mock body: putCustomer-responseBody.json
Headers:
Field name | Value |
---|---|
Content-Type | application/json |
Cookies: Not Defined
Test Cases:
Update Customer
Succesfully updates a customer
Request:4>
Headers:
Field name | Value |
---|---|
Accept | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
Accept-Encoding | gzip, deflate |
Cookies: Not Defined
Response:4>
Validation schema:
putCustomer-responseBody-validationSchema.json
Headers:
Field name | Value |
---|---|
Content-Type | application/json |