your fake REST API server
- fake api
- fake locations
- fake HTTP status codes
- fake JSON-responses
npm install -g fake-rest-api
fake-rest-api start
create backup directory
mkdir -p ~/fake_rest_api_backup
config.json
{
"host": "localhost",
"port": 8000,
"backup": {
"path": "~/fake_rest_api_backup/"
}
}
fake-rest-api -c ./config.json start
option | description |
---|---|
-c, --config | path to custom config.json |
-p, --port | server tcp port |