Schedule Job Batch
6.6K
to_timestamp
[:toTimestamp(hour=4, minute=4):]
1609473840000
to_timestamp_add_minute
[:toTimestampAddMinute(hour=4, minute=4, add=4):]
1609474080000
Example
/api/v1/schedule/pre-next/everyHour
Request
Body
{
"minute": "32"
}
Response
Body
{
"code": 200,
"data": "2024-10-06T08:32:00Z"
}
Example
/api/v1/request/pre-next/defaultRequest
Request
Body
{
"id": "1234",
"url": "https://localhost:8080",
"method": "GET",
"body": "[:toTimestamp(hour=10, minute=10):]",
"headers": {}
}
Response
Body
{
"code": 200,
"data": {
"id": "1234",
"url": "https://localhost:8080",
"method": "GET",
"body": "1728209400000",
"headers": {}
}
}
Example
/api/v1/schedule/next/12345678-1234-5678-1234-567812345678
Response
Body
{
"code": 200,
"data": "2024-10-06T08:32:00Z"
}
Example
/api/v1/request/next/12345678-1234-5678-1234-567812345678
Response
Body
{
"code": 200,
"data": {
"id": "12345678-1234-5678-1234-567812345678",
"url": "https://localhost:8080",
"method": "GET",
"body": "1728209400000",
"headers": {}
}
}
Example
/api/v1/progress/12345678-1234-5678-1234-567812345678
Response
Body
{
"code": 200,
"data": "in progress"
}
Example
/api/v1/progress
Response
Body
{
"code": 200
"data": "in progress"
}
docker pull sotaneum/schedule-job-batch:latest