Skip to content

Properly use DRF to create/update/stop stream recording workers/threads #9

@KShivendu

Description

@KShivendu

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:

  • GET /stream/ : Responds with a list(array) of all the active streams
  • POST /stream/ : Starts a new recording
  • GET /stream/<id> : Responds with all the details of the stream with id=<id>
  • UPDATE /stream/<id> : Allows users to play/pause the recorder for the stream with id=<id>
  • DELETE /stream/<id> : Allows users to remove the stream with 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions