tms-koa-agenda

0.2.5 • Public • Published

测试

获取access_token

curl -X POST -H "Content-type: application/json" "http://localhost:3009/auth/authenticate" -d '{"username":"admin","password":"admin"}'

定义任务

curl 'http://localhost:3009/api/agenda/define?access_token=<access_token>' -H 'Content-Type: application/json' -X POST -d '{"name":"job001"}'

立刻执行一次任务

curl 'http://localhost:3009/api/agenda/now?access_token=<access_token>' -H 'Content-Type: application/json' -X POST -d '{"name":"job001","data":{"url":"http://localhost:3009/api/tryGet?access_token=<access_token>&value=hello","method":"GET"}}'

Readme

Keywords

Package Sidebar

Install

npm i tms-koa-agenda

Weekly Downloads

2

Version

0.2.5

License

MIT

Unpacked Size

6.8 kB

Total Files

7

Last publish

Collaborators

  • jasony62