Skip to content

Instantly share code, notes, and snippets.

@dnno
Created December 20, 2022 13:19
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 dnno/9df8e51be196aafb2e284e62cb944617 to your computer and use it in GitHub Desktop.
Save dnno/9df8e51be196aafb2e284e62cb944617 to your computer and use it in GitHub Desktop.
Pact contract file
{
"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