-
-
Save francislobo/9a78a9939bfd0a66e690df80b76c196a to your computer and use it in GitHub Desktop.
generated pact
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
{ | |
"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