nfflow/xhttp/task.http

29 lines
447 B
Plaintext
Raw Normal View History

2024-04-01 18:13:10 +08:00
### 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 * * *"
}