mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-20 07:51:41 +02:00
Add WireMock.org RestClient (#631)
* wip... * x * . * . * . * r * 1.4.21-preview-02 * 1.4.21-preview-03 * . * usings * wip * . * ut * . * . * . * tests * . * comments * readme
This commit is contained in:
38
test/WireMock.Net.Tests/__admin/mappings.org/mapping1.json
Normal file
38
test/WireMock.Net.Tests/__admin/mappings.org/mapping1.json
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"id": "ef53ea56-f118-4b3a-8c69-a9484851d99a",
|
||||
"name": "weatherforecast",
|
||||
"request": {
|
||||
"path": "/WeatherForecast/register-city",
|
||||
"method": "POST",
|
||||
"headers": {
|
||||
"XXX": {
|
||||
"contains": "xml"
|
||||
}
|
||||
},
|
||||
"queryParameters": {
|
||||
"search_term": {
|
||||
"equalTo": "WireMock"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": {
|
||||
"cityName": "São Paulo",
|
||||
"cityCode": 5001
|
||||
},
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"body": "[{\"date\":\"2021-09-09T20:44:48.0992639-03:00\",\"temperatureC\":51,\"temperatureF\":123,\"summary\":\"Hot\"},{\"date\":\"2021-09-10T20:44:48.0992692-03:00\",\"temperatureC\":34,\"temperatureF\":93,\"summary\":\"Mild\"},{\"date\":\"2021-09-11T20:44:48.0992696-03:00\",\"temperatureC\":43,\"temperatureF\":109,\"summary\":\"Sweltering\"},{\"date\":\"2021-09-12T20:44:48.0992698-03:00\",\"temperatureC\":46,\"temperatureF\":114,\"summary\":\"Cool\"},{\"date\":\"2021-09-13T20:44:48.0992701-03:00\",\"temperatureC\":3,\"temperatureF\":37,\"summary\":\"Freezing\"}]",
|
||||
"headers": {
|
||||
"Content-Type": "application/json; charset=utf-8"
|
||||
}
|
||||
},
|
||||
"uuid": "ef53ea56-f118-4b3a-8c69-a9484851d99a",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
Reference in New Issue
Block a user