Files
WireMock.Net-wiremock/test/WireMock.Net.Tests/Pact/files/pact-multiple.json
Stef Heyenrath a6ee2dacc7 Initial support for converting the mappings to a Pact(flow) json file (#748)
* WithDescription

* WithConsumer / WithProvider

* x

* .

* .

* .

* .

* fix

* pact

* nullable

* ficx

* .

* fix
2022-04-22 16:17:50 +02:00

50 lines
1.1 KiB
JSON

{
"Consumer": {
"Name": "Something API Consumer Multiple"
},
"Interactions": [
{
"ProviderState": "A Post request to add the something",
"Request": {
"Headers": {
"Accept": "application/json"
},
"Method": "POST",
"Path": "/add",
"Body": "{ \"Id\" : \"1\", \"FirstName\" : \"Totally\" }"
},
"Response": {
"Body": {
"Id": "1",
"FirstName": "Totally"
},
"Status": 303
}
},
{
"ProviderState": "A GET request to retrieve the something",
"Request": {
"Headers": {
"Accept": "application/json"
},
"Method": "POST",
"Path": "/tester",
"Query": "q1=test&q2=ok"
},
"Response": {
"Body": {
"Id": "tester",
"FirstName": "Totally",
"LastName": "Awesome"
},
"Headers": {
"Content-Type": "application/json; charset=utf-8"
},
"Status": 200
}
}
],
"Provider": {
"Name": "Something API"
}
}