POST
/
v1
/
mock-apis
/
{mockApiId}
/
recordings
/
stop
curl --request POST \
  --url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/recordings/stop \
  --header 'Authorization: Basic <encoded-value>'
{
  "mappings": [
    {
      "id": "093f1027-e5e0-4921-9e6d-e619dfd5d2c7",
      "name": "recordables_123",
      "request": {
        "url": "/recordables/123",
        "method": "GET"
      },
      "response": {
        "status": 200,
        "body": "{\n  \"message\": \"Congratulations on your first recording!\"\n}",
        "headers": {
          "Content-Type": "application/json"
        }
      },
      "uuid": "093f1027-e5e0-4921-9e6d-e619dfd5d2c7",
      "persistent": true
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

mockApiId
string
required

The ID of the Mock API

Required string length: 5 - 10

Response

200 - application/json
Successfully stopped recording
mappings
object[]
meta
object