GET
/
v1
/
mock-apis
/
{mockApiId}
/
version-history
/
commits
/
{versionCommitId}
/
changes
Get all changes between one version and another
curl --request GET \
  --url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/version-history/commits/{versionCommitId}/changes \
  --header 'Authorization: <api-key>'
{
  "versionChanges": [
    {
      "versionChange": {
        "operation": "created",
        "entityType": "stub_mapping",
        "entityId": "<string>",
        "links": {
          "self": "<string>",
          "contentsBefore": "<string>",
          "contentsAfter": "<string>",
          "restoreBefore": "<string>",
          "restoreAfter": "<string>"
        }
      }
    }
  ],
  "meta": {
    "start": 20,
    "end": 29,
    "total": 48,
    "page": 3,
    "totalPages": 5
  },
  "links": {
    "self": "/v1/users/abc12/apis?q=training&limit=20&page=1"
  }
}

Authorizations

Authorization
string
header
required

Your API key prefixed by 'Token '

Path Parameters

mockApiId
string
required

The ID of the Mock API

Required string length: 5 - 10
Example:

"jjl8y"

versionCommitId
string
required

The ID of the version

Required string length: 5 - 10
Example:

"jjl8y"

Query Parameters

toLatest
boolean

Show the changes between the requested version and the latest version.

fromPrevious
boolean

Show the changes between the requested version and the previous version. This is the default if no parameter is supplied.

fromCommit
string

Show the changes between the requested version and the version identified by the parameter value. The "from" version must have taken place before the requested version.

Required string length: 5 - 10
Example:

"jjl8y"

Response

200
application/json

200 response

The response is of type object.