Simple Table Service
May 19, 2016 ยท View on GitHub
Simple REST service for serving statistical output tables. The service is used by StatMiner.
Install node packages
npm install
Start server
nodejs server.js
Update index of tables
nodejs update_index.js
Interface
- A GET on http://localhost:8088/tables returns a list of tables.
- A GET on http://localhost:8088/<tablename>/schema returns the schema of the table in http://data.okfn.org/doc/tabular-data-package format.
- A GET on http://localhost:8088/<tablename>/data returns the data in CSV format.
- A POST on http://localhost:8088/<tablename>/query returns a subset (as specified by the query) with schema.