Created
June 5, 2020 11:36
-
-
Save Lakitna/ee3633ca7235d084e21c1fa6c69e153b 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
{ | |
"consumer": { | |
"name": "ui" | |
}, | |
"provider": { | |
"name": "userservice" | |
}, | |
"interactions": [ | |
{ | |
"description": "a request to POST a person", | |
"providerState": "provider accepts a new person", | |
"request": { | |
"method": "POST", | |
"path": "/user-service/users", | |
"headers": { | |
"Content-Type": "application/json" | |
}, | |
"body": { | |
"firstName": "Arthur", | |
"lastName": "Dent" | |
} | |
}, | |
"response": { | |
"status": 201, | |
"headers": { | |
"Content-Type": "application/json" | |
}, | |
"body": { | |
"id": 42 | |
}, | |
"matchingRules": { | |
"$.body": { | |
"match": "type" | |
} | |
} | |
} | |
} | |
], | |
"metadata": { | |
"pactSpecification": { | |
"version": "2.0.0" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment