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

GET /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,
  }
  ,
  ...
]

Clone this wiki locally