Data files


Mockoon desktop stores each mock API's data in a separate file. These files contain all the information about the environment, routes, and responses. They are stored in a JSON format and can be easily shared with other Mockoon users, used with the CLI, or stored in a git repository.

 Data files schema

Each environment file contains information about the environment, routes, and responses. They are stored in a JSON format following a schema and are validated every time you open an environment. This schema is available in the repository.

 Locating the mock API files

You can locate the folder in which the API data are stored by right-clicking on each environment and selecting "Show data file in explorer/finder":

click on show in folder in the context menu

 Moving the files

You can move the data files to another folder by right-clicking on an environment and selecting "Move data file to folder":

click on Move data file to folder in folder in the context menu

 Enabling data file watching

Mockoon can monitor data files' external changes and automatically reload the interface with the new information. This is particularly useful when you are editing the data files with an external editor or pulling changes from a git repository. You can activate this option in the settings:

enable file monitoring in the settings

 Cloud environments

If you are a Mockoon Cloud user, you can also create cloud environments that are stored in the cloud and synchronized across all your devices. It also allows you to collaborate in real-time with your team members. You can learn more about this feature in the dedicated documentation.