marcin.grzejszczak
2021-07-19 17:23
this is the published Pact
```{
"provider": {
"name": "beer-api-producer-pact"
},
"consumer": {
"name": "beer-api-consumer-pact"
},
"interactions": [
{
"_id": "cf7c01f93ae7a216d6f4b6746bb04502b026792a",
"description": "Represents a successful scenario of getting a beer",
"request": {
"method": "POST",
"path": "/check",
"headers": {
"Content-Type": "application/json;charset=UTF-8"
},
"body": {
"name": "marcin",
"age": 25
}
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json;charset=UTF-8"
},
"body": {
"status": "OK"
}
},
"providerStates": [
{
"name": ""
}
]
},
{
"_id": "d35b961335e7b04b08d48b8320ecbc26be584136",
"description": "Represents an unsuccessful scenario of getting a beer",
"request": {
"method": "POST",
"path": "/check",
"headers": {
"Content-Type": "application/json;charset=UTF-8"
},
"body": {
"name": "marcin",
"age": 10
}
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json;charset=UTF-8"
},
"body": {
"status": "NOT_OK"
}
},
"providerStates": [
{
"name": ""
}
]
}
],
"metadata": {
"pactSpecification": {
"version": "3.0.0"
},
"pact-jvm": {
"version": "4.1.23"
}
}
}```