v17

latestOpenAPI 3.0.2MITraw.githubusercontent.com2026-08-03263343.4 KB
stubs

Validate a stub payload without persisting

Validates one or more stubs and returns them normalized without adding to storage

post/stubs/validate

Request body

OR

Example request

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

Response

Successful operation

idstring uuid
servicestring required
methodstring required
priorityinteger

Priority of the stub. Higher priority stubs are matched first.

usedboolean

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

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"
    }
  }
]