Skip to content

Instantly share code, notes, and snippets.

@mefellows
Created November 6, 2016 05:07
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 mefellows/74e4197901294e39314e86d50b4f614f to your computer and use it in GitHub Desktop.
Save mefellows/74e4197901294e39314e86d50b4f614f to your computer and use it in GitHub Desktop.
Pact output example (v2)
{
"consumer": {
"name": "MyConsumer"
},
"provider": {
"name": "MyProvider"
},
"interactions": [
{
"description": "Some name for the test",
"provider_state": "Some state",
"request": {
"method": "GET",
"path": "/foobar",
"headers": {
"Content-Type": "application/json"
},
"body": {
"s": "foo"
}
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"body": {
"s": "bar"
}
}
},
{
"description": "Some name for the test",
"provider_state": "Some state2",
"request": {
"method": "GET",
"path": "/bazbat"
},
"response": {
"status": 200,
"headers": {
}
}
}
],
"metadata": {
"pactSpecificationVersion": "2.0.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment