Ryan Guo
08/26/2024, 11:35 PM{
"priority": 5,
"request": {
"method": "ANY",
"urlPattern": "/example-data-status-app/.*",
},
"response": {
"proxyBaseUrl": <http://testdata.dev.example.com>,
"status": 200
}
}
And I got following record
{
"request" : {
"url" : "/example-data-status/services/v2/",
"method" : "POST",
"bodyPatterns" : [ {
"equalToJson" : "{\"startDate\":\"2022-08-26T21:24:10.598Z\",\"endDate\":\"2024-08-26T21:24:10.598Z\",\"labels\":[]}",
"ignoreArrayOrder" : true,
"ignoreExtraElements" : true
} ]
},
"response" : {
"status" : 200,
},
}
Is is possible to get record like
{
"request" : {
"url" : "/example-data-status/services/v2/",
"method" : "POST",
"bodyPatterns" : [ {
"equalToJson" : "{\"startDate\":\"2022-08-26T21:24:10.598Z\",\"endDate\":\"2024-08-26T21:24:10.598Z\",\"labels\":[]}",
"ignoreArrayOrder" : true,
"ignoreExtraElements" : false
} ]
},
"response" : {
"status" : 200,
},
}
Due to the startDate attribute in record will expire and can not reuse.
Thanks a lot guysTom
08/27/2024, 8:56 PMRyan Guo
09/04/2024, 6:07 AMRyan Guo
09/04/2024, 6:27 AMRyan Guo
09/04/2024, 6:27 AMTom
09/04/2024, 8:37 AMRyan Guo
09/04/2024, 4:15 PMjava -jar wiremock-standalone-3.9.1.jar --record-mappings
as recording mode to record the API request.
In the mapping folder I will define the mapping proxy template json file.
So in this way, is it possible to modify the json template file to complete above request, such as make the record's attribute "ignoreExtraElements" as false.
Thanks a lotTom
09/04/2024, 5:04 PMRyan Guo
09/04/2024, 9:18 PMjava -jar wiremock-standalone-3.9.1.jar --record-mappings
to recording.
My question is is it possible to through setup a custom json template file to make standalone to generate a recording's attribute"ignoreExtraElements" value as "false".
Thanks a lot