Cronicle icon indicating copy to clipboard operation
Cronicle copied to clipboard

Questions about API

Open devopsmash opened this issue 8 months ago • 2 comments

Hi,

I have 2 questions about the api support in Cronicle:

  • Is it possible to create a scheduled task with a cron expression through the API? For example:
curl -X post http://localhost/api/app/create_event/v1 -d '{"title": "test",...,"cron":"0 0 12 * *}'
  • Is it possible to create a scheduled task via API that will run every month on the last Friday for example? Do you plan to support L flag which represent the last day of the month?

For example:

curl -X post http://localhost/api/app/create_event/v1 -d '{"title": "test",...,"timing":{"hours":"3","weekdays":"6L",""}}'

devopsmash avatar Dec 03 '23 13:12 devopsmash

Cron syntax support in the API is coming in v2, most definitely! It's on my TODO list as a required feature. Estimated release of v2 is early 2024.

I did not know about the "L" flag. I just read about it now. I will try to fit it in!

jhuckaby avatar Dec 03 '23 17:12 jhuckaby

Thank you @jhuckaby for your quick reply, looking forward for the new api v2 release.

devopsmash avatar Dec 04 '23 10:12 devopsmash