-
Notifications
You must be signed in to change notification settings - Fork 40
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
Do we want a JSON API? #66
Comments
Meeting with Lars via Appear.in: Yes, we should do that. Milestone 2.0 |
You should be able to use from flask import jsonify
@app.route('/api')
def summary():
…
return jsonify(data) |
Maybe generate |
Yes, I'm building a Probably won't get this done in time, so this will go in with 2.1 probably. |
Work on this is happening in #73. |
Fixed by #73 |
Looking at the new UI, we could easily leverage the internal state agent to provide detailed information about the capture agent. A neat way to do that would be to expose the states via a simple API that can also be used in monitoring. A simple
/status.json
would be a good start.Thinking further, one might want to be able to manually start and stop recording remotely, because scheduling via Opencast is not comfortable if you don't know how long you actually want to record for yet.
My gut instinct would be to do it right the first time and build a small and simple JSON API (https://jsonapi.org). But this would again increase the scope, but also the functionality of pyCA.
So, do we want this?
The text was updated successfully, but these errors were encountered: