htm-community / river-view

Public Temporal Streaming Data Service Framework
http://data.numenta.org/
MIT License
28 stars 16 forks source link

JSON requests for data should respect pagination options #130

Closed rhyolight closed 8 years ago

rhyolight commented 8 years ago

When users go to http://localhost:8085/<river-name>/data.json, two new pagination options should apply to the search results:

If no page query param is received, the default should be 1.

The resulting JSON should also be updated to contain the page in result objects, like this:

{
  "name":"<river-name>",
  "type":"<data-type>",
  "timezone":"<timezone>",
  "page":"1",
  "headers":[...],
  "data":[...]
}

Depends on #129.