ngcp-panel/t/api-rest2/Utils/CreateCustomer.yaml

27 lines
481 B

---
#create Customer
-
name: create Customer
type: item
method: POST
path: '/api/customers/'
header:
Content-Type: application/json
content: '${customer_content}'
retain:
customer_path: header.location
conditions:
is:
code: 201
#get customer
-
name: GET customer
type: item
method: GET
path: '/${customer_path}'
retain:
customer: body
conditions:
is:
code: 200