v1
latestOpenAPI 3.0.02026-07-14330119.9 KBStub Mappings
Create a new stub mapping
post/__admin/mappings
Request body
Example request
{
"request": {
"bodyPatterns": [
{
"equalToJson": "{ \"numbers\": [1, 2, 3] }"
}
],
"headers": {
"Content-Type": {
"equalTo": "application/json"
}
},
"method": "POST",
"url": "/some/thing"
}
}Response
The stub mapping
Example response
{
"request": {
"bodyPatterns": [
{
"equalToJson": "{ \"numbers\": [1, 2, 3] }"
}
],
"headers": {
"Content-Type": {
"equalTo": "application/json"
}
},
"method": "POST",
"url": "/some/thing"
}
}