OpenLake / Smart-Cams

Give superpowers to your CCTV/Mobile cameras with Computer vision 📷🤖
5 stars 6 forks source link

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

Open KShivendu opened 3 years ago

KShivendu commented 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

Your task is to refactor the code.

At the end we should have API endpoints like this:

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

Dhruv88 commented 3 years ago

I have created a PR for this issue please check

Dhruv88 commented 3 years ago

I have updated the pr as per the requested changes