More readme docs
This commit is contained in:
parent
83b0f81c8f
commit
3d2245f416
41
README.md
41
README.md
@ -38,9 +38,44 @@ Get current database tables:
|
|||||||
GET /tables
|
GET /tables
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Get table details:
|
||||||
|
|
||||||
|
```
|
||||||
|
GET /tables/:name
|
||||||
|
```
|
||||||
|
|
||||||
Execute select query:
|
Execute select query:
|
||||||
|
|
||||||
```
|
```
|
||||||
POST /query?query=SQL
|
POST /select?query=SQL
|
||||||
GET /query?query=SQL
|
GET /select?query=SQL
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Response formats
|
||||||
|
|
||||||
|
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"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user