Skip to content

Instantly share code, notes, and snippets.

@eduardopc
Created April 30, 2020 01:20
Show Gist options
  • Save eduardopc/8d933fa9c83cbd26da7cf343a031a5d5 to your computer and use it in GitHub Desktop.
Save eduardopc/8d933fa9c83cbd26da7cf343a031a5d5 to your computer and use it in GitHub Desktop.
{
"consumer": {
"name": "web-application"
},
"provider": {
"name": "characters-api-application"
},
"interactions": [
{
"description": "a request to list all characters",
"request": {
"method": "GET",
"path": "/characters"
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json; charset=utf-8"
},
"body": [
{
"id": 1,
"name": "Walter White",
"age": 58
},
{
"id": 1,
"name": "Walter White",
"age": 58
},
{
"id": 1,
"name": "Walter White",
"age": 58
},
{
"id": 1,
"name": "Walter White",
"age": 58
},
{
"id": 1,
"name": "Walter White",
"age": 58
}
],
"matchingRules": {
"$.body": {
"min": 5
},
"$.body[*].*": {
"match": "type"
},
"$.body[*].id": {
"match": "type"
},
"$.body[*].name": {
"match": "type"
},
"$.body[*].age": {
"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