Mockoon Cloud allows you to synchronize your mock APIs in the cloud, share them with your team, and collaborate in real time. This feature is available in the desktop application and is part of the Mockoon Cloud paid plans. Read on to learn how to use it and the different features it offers.
The local environment is the default environment in Mockoon. It is stored on your local machine and not synchronized with the cloud.
Cloud environments are stored on our servers, and a local copy is kept on each client's machine. You can easily create a cloud copy of your local environment or convert an existing cloud environment back to a local environment.
There are multiple ways to create a cloud environment. You can use the context menu in the local environments list to create a cloud environment from a local one using "Duplicate to the cloud" or create a new cloud environment from scratch using "New cloud environment" from the cloud environments menu.
The new cloud environment will be created and synchronized with the cloud, together with a local copy. It will be available on all your devices (solo plan) and for all your team members (team/enterprise plans) once they connect to the cloud.
You can remove an environment from the cloud using the context menu in the cloud environments list and selecting "Convert to local" or "Delete from cloud":
After converting an environment to local, it will be permanently removed from the cloud and converted to a local environment on all your devices (solo plan) and for all your team members (team/enterprise plans).
This feature is designed to allow multiple users (Team and Enterprise plans) to work on the same environment at the same time. The application will handle conflicts on a last-write-wins basis, but many changes can be made simultaneously without conflicts, for example:
However, some parts of the environment definition cannot be edited simultaneously and are considered as a single entity that cannot be merged and will be synchronized as a whole. Here are some examples:
Presence indicators are displayed in the application to show who is currently connected and editing an environment. They are visible in the cloud environments list, indicating if a user is editing an environment (left side of the image). Additionally, presence indicators are shown at the top of the application, displaying the users currently connected to the cloud space (right side of the image).
💡 You can customize your display name in the application settings to make it easier for your team members to identify you.
Mockoon's synchronization and collaboration features are primarily designed to work while being online. Offline editing works to some extent, but it is not recommended to simultaneously edit the same environment while being offline.
When you are offline, a warning is shown in the cloud environments list:
Warning shown when the application is offline
When you modify an environment while being offline and go back online, three scenarios can happen:
Dialog shown when the application detected a conflict
⚠️ If multiple users edit the same environment while offline, only one version of the environment will be kept and the others will be discarded.
If you are disconnected from the cloud, the application will display a warning in the cloud environments list in the form of a orange or red cloud icon. Hovering over the icon will display the reason for the disconnection (e.g. incompatible version, etc.). You can also click on the icon to try to reconnect:
Tooltip showing a regular disconnection
Tooltip showing a disconnection due to an incompatible version
Future major versions of Mockoon may introduce breaking changes to the data model of your environments. When this happens, the first device (or user) to connect to the cloud storage will trigger the migration process. The migration will update the data model of the cloud environments to the new version. Once the migration is complete, older versions of Mockoon will no longer be able to synchronize with your cloud space and will have to be updated.
Here are the steps to follow to migrate your environments to a new major version when working in a team:
⚠️ We strongly recommend that major updates installations are coordinated across your team to avoid any disruption.
The data synchronization feature is available in the Solo and Team/Enterprise plans. The feature's behaviors are similar in all plans, but some quotas and limits apply. Here are the main ones:
For all users (Solo, Team, and Enterprise), the environments can be synchronized across an unlimited number of devices with a limit of 2 simultaneous devices per user.
These quotas and limits are subject to change. Please refer to your account settings for the latest information.
Here is a list of limitations of the current version of the data synchronization feature: