Project

General

Profile

REST APIs » History » Revision 5

Revision 4 (Hammel, 18 Feb 2018 17:06) → Revision 5/16 (Hammel, 23 Feb 2018 21:01)

h1. REST APIs 

 h2. Server Node 

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