0.2.5 • Published 2 years ago

tms-koa-agenda v0.2.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years 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

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago