Skip to content

Instantly share code, notes, and snippets.

@XuefengWu
Created January 2, 2014 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save XuefengWu/8216001 to your computer and use it in GitHub Desktop.
Save XuefengWu/8216001 to your computer and use it in GitHub Desktop.
{
"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