Project

General

Profile

REST APIs » History » Version 2

Hammel, 12 Feb 2018 22:40

1 1 Hammel
h1. REST APIs
2
3
h2. Server Node
4
5
table{width:100%}.
6 2 Hammel
|_. Resource Name |_. HTTP Verbs |_. HTTP Methods      |_. Direction                |_. Description |
7
| Pair            | CREATE Pair  |  POST /pair/<uuid>  | From IoT Node              | Pair an IoT node with the server|
8
| Device          | CREATE Device|  POST /device/<uuid>| From IoT Node              | Register a node |
9
| Device          | UPDATE Device|  PUT /device/<uuid> | From Jarvis, To IoT Node   | Change device state with JSON |
10
| Device          | GET Device   |  GET /device/<uuid> | From Jarvis, To IoT Node   | Get Device state, returned with JSON |
11 1 Hammel
12
h2. IoT Node
13
14
table{width:100%}.
15 2 Hammel
|_. Resource Name |_. HTTP Verbs |_. HTTP Methods      |_. Direction |_. Description |
16
| Pair            | CREATE Pair  |  POST /pair/<uuid>  | From Server | Pair an IoT node with the server|
17
| Device          | UPDATE Device|  PUT /device/<uuid> | From Server | Change device state with JSON |
18
| Device          | GET Device   |  GET /device/<uuid> | From Server | Get Device state, returned with JSON |