Mock API Versioning Overview
Get Support
link in the menu bar.Version history
link to
access the version history.
View changes
link to the right of the commit. This will display one or more changes highlighting what was
changed and how. For example, the following example shows a change for a stub creation in the Mock API:
Delete
button will display a confirmation dialog asking if you want to proceed with the deletion.
No
button will exit the confirmation dialog without deleting the stub. Clicking the Yes
button
will ‘restore’ the change and delete the stub.
Once you have deleted a stub, the stub will no longer be available in your mock API and a new commit will be created
with the stub deletion. The diff will show the stub as being deleted:
Restore
to allow you to restore the stub. Clicking on the Restore
button will display a confirmation dialog asking if you want to proceed with the restore.
No
button will exit the dialog without restoring the stub. Clicking Yes
will restore the
stub and create a new commit with the stub creation.
The same applies to modifying - a new commit will be created with the change. The diff will show the change from the
previous version to the new version:
Restore
button is available on the right hand side of the diff. This is
because the right hand side of the diff shows the most recent version of the stub. The left hand side of the diff has an
Restore
button available to restore the change. If the commit you were looking was not the most recent version of the
stub, you will see a Restore
button on both sides of the diff allowing either side of the diff to be restored:
View changes
link for a commit, you will see the changes between the commit you have selected
and the previous commit. This is great for when you want to cherry-pick specific changes and restore individual items
in your mock API.
However, if you want to restore the entire mock API to a previous version, you can do so by clicking on the Compare with latest
link next to a commit
Restore all changes
button next to the commit you want to restore to.
Restore all changes
button, you will be prompted to confirm that you want to restore the entire
mock API to the selected commit.
Yes
will restore the entire mock API to the selected commit and clicking No
will exit the confirmation dialog
without making any changes.