Mock APIs as files with a NextJS routing directory style
Download the executable from the latest release.
Run the following under a folder with some .json
files:
mok
Then you can go to http://localhost:8080 and check for yourself
You can specify the address and the port to listen:
mok --listen 0.0.0.0 --port 80
Or use a different folder than the current:
mok path/to/my/json/files
To be able to randomise the content of our JSON files we can use all functions from gofakeit and passed request data.
Check example folder for more info.
This package is open-sourced software licensed under the MIT license.