We’d love to be able to access OpenFn via an API.
We’re building a dashboard webpage that keeps tabs on all of the bits of our integrated systems. We’d like to be able to list the last 10 failed OpenFn jobs here, or show a count of failed jobs in the last 24hrs/week/month.
I tracked this down: https://github.com/OpenFn/api/blob/master/spec/app_spec.rb
but am not 100% sure what to do with it (and whether it’s applicable)
I tried logging in to OpenFn and then accessing a couple of different combinations of url:
https://www.openfn.org/projects//mappings
https://www.openfn.org/api//mappings
https://www.openfn.org/projects//api/mappings
but all gave 404s and I’m shooting in the dark…
Is the API accessible on hosted OpenFn accounts?
And if so, what are the urls I should be using to get the info I’m looking for?
Thanks!
Andrew