29 lines
447 B
Plaintext
29 lines
447 B
Plaintext
|
### login
|
||
|
POST localhost/api/user/auth/login
|
||
|
Content-Type: application/json
|
||
|
|
||
|
{
|
||
|
"username": "admin",
|
||
|
"password": "Foobar123"
|
||
|
}
|
||
|
|
||
|
### create task 1
|
||
|
POST localhost/api/task/create
|
||
|
Content-Type: application/json
|
||
|
|
||
|
{
|
||
|
"task_name": "123",
|
||
|
"task_timeout": 3600
|
||
|
}
|
||
|
|
||
|
### create task 3
|
||
|
POST localhost/api/task/create
|
||
|
Content-Type: application/json
|
||
|
|
||
|
{
|
||
|
"task_name": "cron_123",
|
||
|
"task_timeout": 1800,
|
||
|
"task_run_type": 2,
|
||
|
"task_cron": "5 0 * * *"
|
||
|
}
|