Skip to content

Instantly share code, notes, and snippets.

@marbemac
Created October 15, 2016 19:48
Show Gist options
  • Save marbemac/124ad0c623678760e6f250fb4ce31473 to your computer and use it in GitHub Desktop.
Save marbemac/124ad0c623678760e6f250fb4ce31473 to your computer and use it in GitHub Desktop.
{
"steps": [
{
"functions": [
{
"input": {
"request": {
"postData": {
"text": "{\n \"foo\": \"bar\"\n}"
},
"headers": {
"Content-Type": "text/plain"
},
"method": "post",
"url": "http://echo.stoplight.io",
"body": "Hello World"
}
},
"after": {
"assertions": [
{
"location": "result.output.response.body",
"target": "body",
"op": "eq",
"expected": "Hello World"
}
]
}
}
]
}
],
"version": "1.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment