v17

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

Add a new stub to the store

Creates a new stub or multiple stubs and adds them to the storage

post/stubs

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

ID[] required

Example response

[
  "51c50050-ec27-4dae-a583-a32ca71a1dd5"
]