khactao27 / IoT_API

API for IOT device

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IoT_API

API for IOT device

Run tutorial

1- Download project 2- set up Mysql - SQL data base : password : "xxxx" 3- Run CML: npm install 4- Run API with command: npm start 5- Thanks!

Using Postman to test API:

1- GET /api/sensors -> Get all sensor data 2- GET /api/sensors/:id -> Get a data of sensor using id 3- PUT /api/sensors/:id -> update data using id 4- POST /api/sensors -> Create a data 5- DELETE /api/sensors/:id -> delete data using id.

This project wasn't using md5 hashcode for security

-> purpose is test API and understanding about action of API IOT

About

API for IOT device


Languages

Language:JavaScript 100.0%