Files
WireMock.Net/test/WireMock.Net.Tests/Pact/files/pact-multiple.json
Stef Heyenrath 020cc15420 Correctly map the Pact Interaction Description property (#1331)
* 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>
2025-07-18 08:41:04 +02:00

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"
}
}