Simple Spring Scheduler (cron based) API sample
The execution of the job will display the message in the System.out.
mvn spring-boot:run
Start server on 8080 port
Sample: every ten seconds.
curl -H "Content-Type: application/json" -X POST http://localhost:8080/api/jobs -d '{"name": "job-name", "msg": "Hello World", "cron": "*/10 * * * * *"}'
curl http://localhost:8080/api/jobs
curl -X DELETE http://localhost:8080/api/jobs/job-name