Skip to content

Instantly share code, notes, and snippets.

@francislobo
Last active May 7, 2021 04:13
Show Gist options
  • Save francislobo/9a78a9939bfd0a66e690df80b76c196a to your computer and use it in GitHub Desktop.
Save francislobo/9a78a9939bfd0a66e690df80b76c196a to your computer and use it in GitHub Desktop.
generated pact
{
"consumer": {
"name": "theConsumer"
},
"interactions": [
{
"description": "a POST request to copy stuff",
"providerStates": [
{
"name": "logged in"
}
],
"request": {
"body": {
"ids": [
"FB**06"
]
},
"method": "POST",
"path": "/api/client/13C***EE/copy"
},
"response": {
"body": {
"data": {
"copiedData": {
"TestKey": {
"mailingId": "",
"name": ""
}
}
}
},
"headers": {
"Content-Type": "application/json"
},
"matchingRules": {
"body": {
"$.data.copiedData.*.mailingId": {
"combine": "AND",
"matchers": [
{
"match": "type"
}
]
},
"$.data.copiedData.*.name": {
"combine": "AND",
"matchers": [
{
"match": "type"
}
]
}
}
},
"status": 200
}
}
],
"metadata": {
"pactJs": {
"version": "10.0.0-beta.34"
},
"pactRust": {
"version": "0.8.14"
},
"pactSpecification": {
"version": "3.0.0"
}
},
"provider": {
"name": "theProvider"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment