mise a jour

This commit is contained in:
Abdel Kader Chabi Sika Boni 2020-12-11 16:08:19 +01:00
parent 40a15230ca
commit bf996b713c

34
Dockerfiles/API.txt Normal file
View file

@ -0,0 +1,34 @@
SERVER
GET /devices
GET /device/:dev
POST /device/:dev/data
GET /device/:dev/data
POST /devices/register
GET /gateways
GET /gateways/:gw
POST /gateways/register
GET /ping
GET /health
GATEWAY (Intermediary & Final)
POST /gateways/register
POST /devices/register
POST /device/:dev/data
GET /gateways
GET /gateway/:gw
GET /ping
GET /health
DEVICE
---
Data Format
{ Name : LOCAL_ENDPOINT.NAME,
Data : dataItem++, //an integer incrementing everytime data is sent
Time : Date.now(), //the date (+hour) the data has been sent
}
Register Format
{ Name : LOCAL_ENDPOINT.NAME, //the name of the entity which want to register itself
PoC : 'http://' + LOCAL_ENDPOINT.IP + ':' + LOCAL_ENDPOINT.PORT, //the address from which the registering entity can be joined
}