GET
/
v1
/
mock-apis
/
{mockApiId}
/
mappings
curl --request GET \
  --url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/mappings \
  --header 'Authorization: Basic <encoded-value>'
{
  "meta": {
    "total": 2
  },
  "mappings": [
    {
      "id": "76ada7b0-49ae-4229-91c4-396a36f18e09",
      "uuid": "76ada7b0-49ae-4229-91c4-396a36f18e09",
      "request": {
        "method": "GET",
        "url": "/search?q=things",
        "headers": {
          "Accept": {
            "equalTo": "application/json"
          }
        }
      },
      "response": {
        "status": 200,
        "jsonBody": [
          "thing1",
          "thing2"
        ],
        "headers": {
          "Content-Type": "application/json"
        }
      }
    },
    {
      "request": {
        "method": "POST",
        "urlPath": "/some/things",
        "bodyPatterns": [
          {
            "equalToXml": "<stuff />"
          }
        ]
      },
      "response": {
        "status": 201
      }
    }
  ]
}

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

Query Parameters

limit
integer

The maximum number of results to return

offset
integer

The start index of the results to return

Response

200 - application/json
All stub mappings
mappings
object[]
meta
object