Slide 40
Slide 40 text
{
"request" : {
"url" : "/check",
"method" : "POST",
"headers" : {
"Content-Type" : {
"matches" : "application/json.*"
}
},
"bodyPatterns" : [ {
"matchesJsonPath" : "$[?(@.['age'] =~ /[2-9][0-9]/)]"
} ]
},
"response" : {
"status" : 200,
"body" : "{\"status\":\"OK\"}",
"headers" : {
"Content-Type" : "application/json"
}
}
}
generated stub