pgweb/API.md
2014-10-11 13:40:15 -05:00

469 B

API

Current endpoint:

 GET /info
 GET /tables
 GET /tables/:table
 GET /tables/:table/indexes
 GET /query
POST /query
 GET /explain
POST /explain
 GET /history

Query Response

Successful response:

{
  "columns": [
    "column_name1",
    "column_name2",
    "column_name3"
  ],
  "rows": [
    [
      "column 1 value",
      "column 2 value",
      "column 3 value" 
    ]
  ]
}

Error response:

{
  "error": "Error message"
}