-
Notifications
You must be signed in to change notification settings - Fork 1
Interface API Documents For V2
URL : http://SERVER_ADDR/interface/login
Request Parameters :
Name | Type | Explanation |
---|---|---|
user | String | User Account (Authentication) |
password | String | User Password (Authentication) |
Return Parameters : JSON of User Info.
URL : http://SERVER_ADDR/interface/user
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 0 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
Request Permission : admin
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 1 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
name | String | Nickname |
user | String | Account |
password | String | Encoded Password |
role | Integer | Role ID |
Request Permission : admin
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 2 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
id | Integer | Deleted User's ID |
Request Permission : admin
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 3 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
id | Integer | Modified User's ID |
name | String | Nickname |
permission | String | JSON String of Permission |
role | Integer | Role ID |
Request Permission : admin
URL : http://SERVER_ADDR/interface/raspi
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 0 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
Request Permission : build
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 2 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
id | Integer | Deleted Raspi's ID |
Request Permission : build
URL : http://SERVER_ADDR/interface/hardware
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 0 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
room | Integer | Room ID |
Request Permission : ``
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 1 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
name | String | Nickname |
type | Integer | Hardware Type ID |
host | Integer | Attached Raspi ID |
gpio | String | GPIO Value |
room | Integer | Room ID |
Request Permission : build
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 2 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
id | Integer | Deleted Hardware's ID |
Request Permission : build
URL : http://SERVER_ADDR/interface/room
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 0 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
building | Integer | Building ID |
Request Permission : ``
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 1 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
name | String | Nickname |
building | Integer | Building ID |
Request Permission : build
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 2 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
id | Integer | Deleted Room's ID |
Request Permission : build
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 3 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
id | Integer | Modified Room's ID |
name | String | Nickname |
timeout | String | Timeout Time in the Room |
defaultValue | Integer | Default State of Light in the Room 0/1 |
Request Permission : build
URL : http://SERVER_ADDR/interface/building
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 0 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
Request Permission : ``
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 1 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
name | String | Nickname |
Request Permission : build
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 2 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
id | Integer | Deleted Building's ID |
Request Permission : build
URL : http://SERVER_ADDR/interface/role
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 0 |
Request Permission : ``
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 3 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
id | Integer | Modified Role's ID |
priority | Integer | Priority of Role |
Request Permission : admin
URL : http://SERVER_ADDR/interface/log
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 0 |
Request Permission : ``
Request Parameters :
Name | Type | Explanation |
---|---|---|
option | Integer | 2 |
uid | Integer | User ID (Authentication) |
token | String | User Token (Authentication) |
id | Integer | Solved Log's ID |
Request Permission : admin
Address: Jilin University, Changchun, Jilin
Telephone: 137****9229, Mr Zhou