Waste Of Time
A service to test stuff with when you need a service that does nothing but responds back after X time has passed.
Setup
change port and host in the config.js defaults are localhost:27998
npm install -g WasteOfTime wot
REST API
GET /wot/api/time/seconds/:seconds
Responds back with status 200 after N number of seconds.
Params:
seconds(Number): The amount of seconds to waste.
GET /wot/api/time/minutes/:minutes
Responds back with status 200 after N number of minutes.
Params:
minutes(Number): The amount of minutes to waste.
GET /wot/api/time/hours/:hours
Responds back with status 200 after N number of hours.
Params:
hours(Number): The amount of hours to waste.
GET /wot/api/time/random/
Responds back with status 200 after random amount of seconds have passed. default is between 1-3 seconds.
Optional Query:
min(Number): The min amount of seconds to waste.
max(Number): The max amount of seconds to waste.