mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-19 23:41:41 +02:00
Initial support for converting the mappings to a Pact(flow) json file (#748)
* WithDescription * WithConsumer / WithProvider * x * . * . * . * . * fix * pact * nullable * ficx * . * fix
This commit is contained in:
50
test/WireMock.Net.Tests/Pact/files/pact-multiple.json
Normal file
50
test/WireMock.Net.Tests/Pact/files/pact-multiple.json
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user