Project

General

Profile

REST APIs » History » Revision 3

Revision 2 (Hammel, 12 Feb 2018 22:40) → Revision 3/16 (Hammel, 18 Feb 2018 16:59)

h1. REST APIs 

 h2. Server Node 

 table{width:100%}. 
 |_. Resource Name |_. HTTP Verbs |_. HTTP Methods                     |_. Direction                      |_. Description | 
 | Pair              | CREATE Pair    |    POST /pair/<uuid>             | From IoT Node                | Pair an IoT node with the server | server| 
 | Pair              | CREATE Pair    |    POST /pair/jarvis/<uuid> | From Jarvis     | Pair a Jarvis node with server | 
 | Device            | CREATE Device|    POST /device/<uuid>        | /device/<uuid>| From IoT Node                | Register a node | 
 | Device            | UPDATE Device|    PUT /device/<uuid>         | From Jarvis Jarvis, To IoT Node     | Change device state with JSON | 
 | Device            | GET Device     |    GET /device/<uuid>         | From Jarvise    Jarvis, To IoT Node     | Get Device state, returned with JSON | 

 h2. IoT Node 

 table{width:100%}. 
 |_. Resource Name |_. HTTP Verbs |_. HTTP Methods        |_. Direction |_. Description | 
 | Pair              | CREATE Pair    |    POST /pair/<uuid>    | From Server | Pair an IoT node with the server| 
 | Device            | UPDATE Device|    PUT /device/<uuid> | From Server | Change device state with JSON | 
 | Device            | GET Device     |    GET /device/<uuid> | From Server | Get Device state, returned with JSON |