pavan kumar s
10/20/2023, 5:59 PM{
"provider": {
"name": "GetTokenServiceProvider"
},
"consumer": {
"name": "GetTokenServicePConsumer"
},
"interactions": [
{
"description": "Pact JVM example Pact interaction",
"request": {
"method": "GET",
"path": "/v1/orders/stickerId",
"headers": {
"Content-Type": "application/json"
}
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json; charset=UTF-8"
},
"body": {
"stickerId": "string"
},
"matchingRules": {
"body": {
"$.stickerId": {
"matchers": [
{
"match": "type"
}
],
"combine": "AND"
}
},
"header": {
"Content-Type": {
"matchers": [
{
"match": "regex",
"regex": "application/json(;\\s?charset=[\\w\\-]+)?"
}
],
"combine": "AND"
}
}
},
"generators": {
"body": {
"$.stickerId": {
"type": "RandomString",
"size": 20
}
}
}
},
"providerStates": [
{
"name": ""
}
]
}
],
"metadata": {
"pactSpecification": {
"version": "3.0.0"
},
"pact-jvm": {
"version": "4.0.10"
}
}
}