Created
December 20, 2022 13:19
-
-
Save dnno/9df8e51be196aafb2e284e62cb944617 to your computer and use it in GitHub Desktop.
Pact contract file
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": "UserConsumer" | |
}, | |
"interactions": [ | |
{ | |
"description": "A request for a user list", | |
"request": { | |
"method": "GET", | |
"path": "/users" | |
}, | |
"response": { | |
"body": [ | |
{ | |
"id": 1, | |
"name": "Jane Doe" | |
}, | |
{ | |
"id": 2, | |
"name": "John Doe" | |
} | |
], | |
"headers": { | |
"Content-Type": "application/json" | |
}, | |
"status": 200 | |
} | |
} | |
], | |
"metadata": { | |
"pact-jvm": { | |
"version": "4.4.2" | |
}, | |
"pactSpecification": { | |
"version": "3.0.0" | |
} | |
}, | |
"provider": { | |
"name": "UserService" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment