Created
January 2, 2014 07:26
-
-
Save XuefengWu/8216001 to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"provider": { | |
"name": "Activate Service" | |
}, | |
"consumer": { | |
"name": "Zoo App" | |
}, | |
"interactions": [ | |
{ | |
"description": "Activate user with empty request body", | |
"request": { | |
"method": "post", | |
"path": "/users/activate" | |
}, | |
"response": { | |
"status": 400, | |
"headers": { | |
"Content-Type": "application/json; charset=UTF-8" | |
} | |
}, | |
"provider_state": "there are alligators" | |
}, | |
{ | |
"description": "Activate user with validate request body", | |
"request": { | |
"method": "post", | |
"path": "/users/activate", | |
"headers": { | |
"Accept": "application/json" | |
}, | |
"body": { | |
"activationToken": "activation-token" | |
} | |
}, | |
"response": { | |
"status": 200, | |
"headers": { | |
"Content-Type": "application/json; charset=UTF-8" | |
}, | |
"body": [ | |
{ | |
"name": "Bob" | |
} | |
] | |
}, | |
"provider_state": "there are alligators" | |
} | |
], | |
"metadata": { | |
"pact_gem": { | |
"version": "1.0.9" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment