2014-10-11 13:40:15 -05:00
|
|
|
# API
|
2014-10-10 21:06:08 -05:00
|
|
|
|
2014-10-11 13:40:15 -05:00
|
|
|
Current endpoint:
|
2014-10-10 21:06:08 -05:00
|
|
|
|
|
|
|
```
|
2014-10-11 13:40:15 -05:00
|
|
|
GET /info
|
|
|
|
GET /tables
|
|
|
|
GET /tables/:table
|
|
|
|
GET /tables/:table/indexes
|
|
|
|
GET /query
|
|
|
|
POST /query
|
|
|
|
GET /explain
|
|
|
|
POST /explain
|
|
|
|
GET /history
|
2014-10-10 21:06:08 -05:00
|
|
|
```
|
|
|
|
|
2014-10-11 13:40:15 -05:00
|
|
|
# Query Response
|
2014-10-10 21:06:08 -05:00
|
|
|
|
|
|
|
Successful response:
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"columns": [
|
|
|
|
"column_name1",
|
|
|
|
"column_name2",
|
|
|
|
"column_name3"
|
|
|
|
],
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
"column 1 value",
|
|
|
|
"column 2 value",
|
|
|
|
"column 3 value"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
Error response:
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"error": "Error message"
|
|
|
|
}
|
|
|
|
```
|