mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-15 06:43:37 +01:00
* Correctly map the Pact Interaction Description property * Update src/WireMock.Net.Minimal/Serialization/PactMapper.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * post --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
53 lines
1.1 KiB
JSON
53 lines
1.1 KiB
JSON
{
|
|
"consumer": {
|
|
"name": "Something API Consumer Multiple"
|
|
},
|
|
"interactions": [
|
|
{
|
|
"description": "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
|
|
}
|
|
},
|
|
{
|
|
"description": "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
|
|
}
|
|
}
|
|
],
|
|
"provider": {
|
|
"name": "Something API"
|
|
}
|
|
} |