Created
January 20, 2017 08:55
-
-
Save amitpatelx/7263999cb0f3a579a8d70963c8f421f3 to your computer and use it in GitHub Desktop.
Mocking create 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": "{\n \"id\": \"3\"\n}" | |
} | |
} | |
], | |
"predicates": [ | |
{ | |
"and": [ | |
{ | |
"equals": { | |
"method": "POST" | |
} | |
}, | |
{ | |
"equals": { | |
"path": "/posts" | |
} | |
}, | |
{ | |
"equals": { | |
"body": "{\"title\":\"Thank you MounteBank\",\"content\":\"I awe you a lot\"}" | |
} | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment