Closed jgallen23 closed 9 years ago
I don't see why we couldn't expose an api. As long as we have an option for a base path it shouldn't be a problem.
here's what I'm thinking:
GET /job/:id - returns the job
POST /job - creates a new job
DELETE /job/:id - cancel job (does agenda support this?)
GET /job - returns stats for complete, failed, in progress (should this be /stats or /job-stats?)
can you think of any others?
Yep, agenda has a cancel.
I think those will work.
maybe /jobs to return stats
/jobs sounds good
we should allow passing in the auth scheme as an option
What about adding an option to expose a json api? should be in this module or separate? @dawnerd ?