mise a jour
This commit is contained in:
parent
40a15230ca
commit
bf996b713c
1 changed files with 34 additions and 0 deletions
34
Dockerfiles/API.txt
Normal file
34
Dockerfiles/API.txt
Normal 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
|
||||
}
|
Loading…
Reference in a new issue