Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 868 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 868 Bytes

Schedule logo

The scheduler is pretty self explanatory. You need a task scheduled? Done.


Routes

▶ /task

Type Route Description Parameters Returns
POST /start Schedules a task { id: String, url: String, body: JSON, cronString: String } { running: Boolean }
GET /list Checks details of tasks None { tasks: [TaskObj] }
POST /stop Stops a task { id: String } { stopped: Boolean }
POST /destroy Destroys a task { id: String } { destroyed: Boolean }
// id = task-[RandomAlphaNumeric]

//TaskObj
{
    id: String, // id
    url: String,
    body: Object,
    cronString: String,
    running: Boolean
}

▶ /schedule

Type Route Description Parameters Returns
GET /health Confirms server alive N/A N/A