Skip to content

Instantly share code, notes, and snippets.

@spencergibb
Created August 25, 2015 16:27
Show Gist options
  • Save spencergibb/0c6e37f7729c61eebd29 to your computer and use it in GitHub Desktop.
Save spencergibb/0c6e37f7729c61eebd29 to your computer and use it in GitHub Desktop.
wiremock stubs
{
"request": {
"method": "GET",
"url": "/foo"
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json;charset=UTF-8"
},
"body": "{\"value\":42}"
}
}
{
"request": {
"method": "GET",
"url": "/foos"
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json;charset=UTF-8"
},
"body": "[{\"value\":42},{\"value\":100}]"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment