Skip to content
Galen Han edited this page Feb 6, 2017 · 8 revisions

GET /libraries

List all libraries

Response

[
  {
    "id": "int",
    "name": "string",
    "available": "int",
    "capacity": "int",
    "energyEfficiency": "int",
  },
  {}
]

GET /libraries/{id}

Response:

{
  "id": "int",
  "name": "string", 
  "available": "int",
  "capacity": "int",
  "energyEfficiency": "int",
  "spaceMap": {
    "gridHeight": "int",
    "gridWidth": "int",
    "seats": [
      {
        "coordinate": ["int", "int"],
        "available": true
      },
      {}
    ]
  }
}

GET /search

Parameters:

  • name - Name of library

Response:

[
  {
    "id": "int",
    "name": "string",
    "available": "int",
    "capacity": "int",
    "energyEfficiency": "int",
  },
  {}
]

PUT /sensors/{id}

Parameters:

  • gridEyeImage: 2D Array 8x8, heatmap info

Clone this wiki locally