Project

General

Profile

REST APIs » History » Version 8

Hammel, 06 Apr 2018 17:08

1 1 Hammel
h1. REST APIs
2
3 7 Hammel
h2. Server Node (imwww)
4 1 Hammel
5
table{width:100%}.
6 6 Hammel
|_. Resource Name |_. HTTP Verbs  |_. HTTP Methods            |_. Returns    |_. Direction   |_. Description |
7 8 Hammel
| Pair            | CREATE Pair   |  POST /pair/iot           | UUID         | From IoT Node | Pair an IoT node w/ server |
8
| Pair            | CREATE Pair   |  POST /pair/iot/register  | ACK          | From IoT Node | Register an IoT node w/server using UUID |
9 6 Hammel
| Pair            | CREATE Pair   |  POST /pair/jarvis/<uuid> | Public keys  | From Jarvis   | Pair a Jarvis node with server |
10
| Monitor         | GET Monitor ID|  GET /monitor             | Monitor ID   | From Jarvis   | Monitor Identify information |
11
| Device          | GET Devices   |  GET /device              | Device list  | From Jarvis   | Get list of device IDs and descriptors |
12
| Device          | UPDATE Device |  PUT /device/<uuid>       | Device state | From Jarvis   | Change device state with JSON |
13
| Device          | GET Device    |  GET /device/<uuid>       | Device state | From Jarvis   | Get Device state as JSON |
14
15
Notes
16
* Monitor identity includes location and possibly other descriptors that uniquely identify the monitor
17 1 Hammel
18 7 Hammel
h2. IoT Node (embedded in Arduino device code)
19 1 Hammel
20 4 Hammel
table{width:100%}.
21
|_. Resource Name |_. HTTP Verbs |_. HTTP Methods      |_. Returns    |_. Direction |_. Description |
22 5 Hammel
| Device          | UPDATE Device|  PUT /device/<uuid> | Device state | From Server | Change device state with JSON |
23
| Device          | GET Device   |  GET /device/<uuid> | Device state | From Server | Get Device state as JSON |