curl --request POST \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests/count \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"method": "POST",
"url": "/resource",
"headers": {
"Content-Type": {
"matches": ".*/xml"
}
}
}'
{
"count": 4
}
Count requests logged in the journal matching the specified criteria
curl --request POST \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests/count \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"method": "POST",
"url": "/resource",
"headers": {
"Content-Type": {
"matches": ".*/xml"
}
}
}'
{
"count": 4
}
The ID of the Mock API
5 - 10
"jjl8y"
Number of matching requests
The response is of type object
.