v1

latestOpenAPI 3.0.02026-07-14330119.9 KB
Requests

Count requests by criteria

Count requests logged in the journal matching the specified criteria

post/__admin/requests/count

Request body

bodyPatternsobject[]

Request body patterns to match against in the <key>: { "<predicate>": "<value>" } form

cookiesobject

Cookie patterns to match against in the <key>: { "<predicate>": "<value>" } form

headersobject

Header patterns to match against in the <key>: { "<predicate>": "<value>" } form

methodstring

The HTTP request method e.g. GET

queryParametersobject

Query parameter patterns to match against in the <key>: { "<predicate>": "<value>" } form

urlstring

The path and query to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.

urlPathstring

The path to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.

urlPathPatternstring

The path regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.

urlPatternstring

The path and query regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.

Example request

{
  "bodyPatterns": [
    {
      "equalToJson": "{ \"numbers\": [1, 2, 3] }"
    }
  ],
  "headers": {
    "Content-Type": {
      "equalTo": "application/json"
    }
  },
  "method": "POST",
  "url": "/some/thing"
}

Response

Number of matching requests

countinteger

Example response

{
  "count": 4
}