Open KShivendu opened 3 years ago
We need to be able to control the stream using the REST APIs. These APIs are already functional and can be found in StreamAPI
StreamAPI
Your task is to refactor the code.
At the end we should have API endpoints like this:
/stream/
/stream/<id>
id=<id>
We should have a proper DRF(Django rest framework) style response in the browser.
For reference, you may look at the code of OpenLake/Leaderboard-Pro/views.py
I have created a PR for this issue please check
I have updated the pr as per the requested changes
We need to be able to control the stream using the REST APIs. These APIs are already functional and can be found in
StreamAPI
Your task is to refactor the code.
At the end we should have API endpoints like this:
/stream/
: Responds with a list(array) of all the active streams/stream/
: Starts a new recording/stream/<id>
: Responds with all the details of the stream withid=<id>
/stream/<id>
: Allows users to play/pause the recorder for the stream withid=<id>
/stream/<id>
: Allows users to remove the stream withid=<id>
We should have a proper DRF(Django rest framework) style response in the browser.
For reference, you may look at the code of OpenLake/Leaderboard-Pro/views.py