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/CreateSubscriber.yaml

28 lines
538 B

---
#create Subscriber
-
name: create Subscriber
type: item
method: POST
path: '/api/subscribers/'
header:
Content-Type: application/json
content: '${subscriber_content}'
retain:
subscriber_path: header.location
subscriber_id: header.location
conditions:
is:
code: 201
#get subscriber
-
name: GET subscriber
type: item
method: GET
path: '/${subscriber_path}'
retain:
subscriber: body
conditions:
is:
code: 200