Cronicle icon indicating copy to clipboard operation
Cronicle copied to clipboard

is it possible to get from the api if the scheduler is enabled

Open yisraelU opened this issue 5 years ago • 2 comments

yisraelU avatar Oct 15 '20 16:10 yisraelU

Looks like documented api endpoints mainly related to event management, there is one for toggling state but I can't see one just for reading. As a workaround you can capture cronicle state by hitting login api, it will send bunch of info in response, including state /api/user/login There is another enpoint for basic server config which doesn't even require auth ( @jhuckaby is it a bug or feature?) /api/app/config It does not contain information about state, but this could be a good place to add state info

mikeTWC1984 avatar Oct 16 '20 15:10 mikeTWC1984

@mikeTWC1984 Yup, the /api/app/config is designed to be authless. It kinda has to load first for the web UI to bootstrap itself. It shouldn't contain any sensitive information (but also, I should say that Cronicle should run behind a firewall for security, but a lot of people don't). I'll make sure this is redesigned for v2.0.

jhuckaby avatar Oct 17 '20 02:10 jhuckaby