-
Notifications
You must be signed in to change notification settings - Fork 2
API
Galen Han edited this page Mar 4, 2017
·
8 revisions
List all libraries
Response
[
{
"id": "int",
"name": "string",
"available": "int",
"capacity": "int",
"energyEfficiency": "int",
},
{}
]Response:
{
"id": "int",
"name": "string",
"available": "int",
"capacity": "int",
"energyEfficiency": "int",
"spaceMap": {
"gridHeight": "int",
"gridWidth": "int",
"seats": [
{
"coordinate": ["int", "int"],
"available": true
},
{}
]
}
}Parameters:
- name - Name of library
Response:
[
{
"id": "int",
"name": "string",
"available": "int",
"capacity": "int",
"energyEfficiency": "int",
},
{}
]Request body:
{
sensorId: string,
temperature: float,
luminosity: int
seats: {
"1": bool,
"2": bool,
"3": bool,
...
}
}