OpenAPI 3.0.2MITraw.githubusercontent.com2026-08-19273465.5 KB

591c74ba50d8

stubs

Getting a list of unused stubs

The list is needed to quickly find unused stubs

get/stubs/unused

Response

Successful operation

idstring uuid

Stub identifier (UUID).

servicestring required

Fully qualified gRPC service name.

methodstring required

gRPC method name, without the service prefix.

priorityinteger

Tie-breaker among equally specific stubs; higher wins. Specificity is compared first, so an equals stub still beats a contains stub with a higher priority.

usedboolean

Response-only — whether the stub has matched at least once. Ignored on input.

sessionstring

Session the stub belongs to; empty means global. Assigned from the X-Gripmock-Session request header — a value sent in the body is discarded.

sourcestring

Source of the stub (file, rest, mcp, proxy)

Example response

[
  {
    "id": "51c50050-ec27-4dae-a583-a32ca71a1dd5",
    "service": "Gripmock",
    "method": "SayHello",
    "output": {
      "error": "Message not found",
      "code": 3,
      "delay": "1s"
    }
  }
]