Configuration
Mockly can be configured through the .mocklyrc
file, where you can put your configuration in JSON format. These options are available:
Option | Type | Default | Description |
delay |
|
| Applies a delay to all requests made to the server |
port |
|
| Defines in which port the server will be mounted |
prefix |
| Applies a prefix to all endpoints available | |
resourceFilesGlob |
|
| Changes the glob used to find resource files configurations |
rewritesFilesGlob |
|
| Changes the glob used to find rewrites files configurations |
responsesConfigGlob |
|
| Changes the glob used to find responses files configurations |
To configure the tool, create a .mocklyrc
file in the root of your project directory with your JSON configuration object, you can use the provided JSON Schema to validate your data.
Last updated