Skip to content

Instantly share code, notes, and snippets.

@amitpatelx
Created January 20, 2017 08:44
Show Gist options
  • Save amitpatelx/b24427ae9f5df498000dda75e1a0d887 to your computer and use it in GitHub Desktop.
Save amitpatelx/b24427ae9f5df498000dda75e1a0d887 to your computer and use it in GitHub Desktop.
Mocking get single Posts using MounteBank server
{
"port": 9999,
"protocol": "http",
"stubs": [
{
"responses": [
{
"is": {
"statusCode": 200,
"body": "{\"id\":\"1\",\"title\":\"Awsome Article on MounteBank\",\"content\":\"I am about to write it...keep eyes on it\"}"
}
}
],
"predicates": [
{
"and": [
{
"equals": {
"method": "GET"
}
},
{
"equals": {
"path": "/posts/1"
}
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment