Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about API #686

Open
devopsmash opened this issue Dec 3, 2023 · 2 comments
Open

Questions about API #686

devopsmash opened this issue Dec 3, 2023 · 2 comments

Comments

@devopsmash
Copy link

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",""}}'
@jhuckaby
Copy link
Owner

jhuckaby commented Dec 3, 2023

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!

@devopsmash
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants