pactflow-publish-sh
Version:
[ ](https://www.npmjs.com/package/pactflow-publish-sh)
125 lines (124 loc) • 2.48 kB
JSON
{
"consumer": {
"name": "WireMockPactExample"
},
"interactions": [
{
"description": "GET /animals -> 202",
"key": "8e3fb9c3",
"pending": false,
"request": {
"body": {
"content": ""
},
"headers": {
"Accept": [
"application/json"
]
},
"method": "GET",
"path": "/animals"
},
"response": {
"body": {
"content": {
"animals": [
{
"id": "1",
"name": "Zack"
}
]
},
"contentType": "application/json",
"encoded": false
},
"headers": {
"Content-Type": [
"application/json"
]
},
"status": 202
},
"type": "Synchronous/HTTP"
},
{
"description": "POST /animals -> 201",
"key": "bce44146",
"pending": false,
"request": {
"body": {
"content": {
"animals": [
{
"id": "0",
"name": "Zack"
}
]
},
"contentType": "application/json",
"encoded": false
},
"headers": {
"Content-Length": [
"63"
],
"Content-Type": [
"application/json"
]
},
"method": "POST",
"path": "/animals"
},
"response": {
"body": {
"content": ""
},
"status": 201
},
"type": "Synchronous/HTTP"
},
{
"description": "POST /animals/1 -> 201",
"key": "497465d0",
"pending": false,
"request": {
"body": {
"content": {
"id": "1",
"name": "Zack"
},
"contentType": "application/json",
"encoded": false
},
"headers": {
"Content-Length": [
"35"
],
"Content-Type": [
"application/json"
]
},
"method": "POST",
"path": "/animals/1"
},
"response": {
"body": {
"content": ""
},
"status": 201
},
"type": "Synchronous/HTTP"
}
],
"metadata": {
"pact-jvm": {
"version": "4.6.9"
},
"pactSpecification": {
"version": "4.0"
}
},
"provider": {
"name": "UnknownProvider"
}
}