Skip to content

Instantly share code, notes, and snippets.

@barbaromatrix
Created May 13, 2019 17:52
Show Gist options
  • Save barbaromatrix/59197cc9a267edd5d266639f7540e90a to your computer and use it in GitHub Desktop.
Save barbaromatrix/59197cc9a267edd5d266639f7540e90a to your computer and use it in GitHub Desktop.
scenarios:
- name: "Resource Scenario"
flow:
- get:
url: "/a/group/of/random/resources"
afterResponse: logResponse
capture:
json: $
as: data
- log: "Result: {{ data }} \n"
- patch:
url: /a/specific/resource
beforeRequest: setupData
afterResponse: logResponse
json:
userId: "{{ userId }}"
ifTrue: "isDataAllowedToBeUsed"
capture:
json: $
as: another_data
- log: "Another return: \n {{ another_data }}\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment