Created
January 20, 2017 08:44
-
-
Save amitpatelx/b24427ae9f5df498000dda75e1a0d887 to your computer and use it in GitHub Desktop.
Mocking get single Posts using MounteBank server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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