Skip to main content

Summary

This area provides an API playground where you can try out WireMock Cloud’s API and send API calls to its various endpoints, from managing users, mock APIs and teams to recording stub mappings, just to name a few. On the left-hand side of the page, you can find a list of all the available endpoints grouped by functional areas. When selecting one, its details appear along with its request and response specification, as well as code examples that are available in a few different languages.

Sending API calls

Once you selected an endpoint, you can send requests to it by clicking the Try it button next to the endpoint path. WireMock Cloud API endpoint summary This opens up an overlay where you can enter the necessary request parameters, body, etc. and can actually send your request. WireMock Cloud API request sender overlay There are two hosts you can choose from: WireMock Cloud API host selector
  • wmc.wiremockapi.cloud: uses a mock API, and supplies canned data
  • api.wiremock.cloud: uses the production API, so you will get real data

Authorization

The endpoints require the Authorization header to be set for which you can use the following formats:
  • Token <api token> (the Authentication page describes how to find your API token)
  • Basic <base64 encoded username:apitoken>