rar-mock-server
v0.0.4
Published
request as response mock server for local development
Downloads
5
Maintainers
Readme
request as response mock server for local development
Run
default port 9001
npx --package rar-mock-server start
to run at a different port 3000
PORT=3000 npx --package rar-mock-server start
endpoints
shutdown the server gracefully
curl --location --request GET 'localhost:9001/shutdown'
any other requests will be sent back with a response
{
"method": "",
"headers": {
"user-agent": "PostmanRuntime/7.26.3",
"accept": "*/*",
},
"body": {}
}