You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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