Project

General

Profile

REST APIs » History » Version 4

Hammel, 18 Feb 2018 17:06

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