Project

General

Profile

REST APIs » History » Revision 4

Revision 3 (Hammel, 18 Feb 2018 16:59) → Revision 4/16 (Hammel, 18 Feb 2018 17:06)

h1. REST APIs 

 h2. Server Node 

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

 h2. IoT Node 

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