0.2.5 • Published 4 months ago

tms-koa-agenda v0.2.5

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

测试

获取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"}}'
0.2.5

4 months ago

0.2.4

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago