Skip to content

maaqib121/demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo

Installation

Setup Virtual Environment

python3 -m venv env

Activate Virtual Environment

source env/bin/activate

Install the required packages by running the following command:

pip3 install -r requirements.txt

Create an .env file in base directory using the following sample env and set the SECRET_KEY:

cp .env.sample .env

Run server using the following command

python3 manage.py runserver

Endpoints

Get list of all devices

GET http://localhost:8000/api/v1/devices

Update connection status of a device to on

PATCH http://localhost:8000/api/v1/devices/:device_id
 -d connect_status=true

Update connection status of a device to off

PATCH http://localhost:8000/api/v1/devices/:device_id
 -d connect_status=false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages