Skip to Content

Database

Get Table Entries

GET /api/db/table/{tableName}/get

Query:

FieldValueType
limit (optional)rows to return (max 10000)number
offset (optional)get rows with offset xnumber
columns (optional)comma separated list of columns to returnstring
http://localhost:7766/api/db/table/test/get?limit=10&offset=0&columns=id,col1

Search Table Entries

v3.0.0+

POST /api/db/table/{tableName}/search

Keywords: “EQUALS”, “NOTEQUALS” , “IN” , “GT” , “GTE” , “LT” , “LTE” , “NOTIN” , “LIKE” , “NOTLIKE” , “ILIKE” , “NOTILIKE” , “ISNULL”
Special Value: ”$#(TODAY)”

Body

FieldValueType
filtercheck the examples belowsstring
limit (optional)rows to return (max 10000)number
offset (optional)get rows with offset xnumber
columns (optional)comma separated list of columns to returnstring

Examples:

{ "filter": { "id": "A" } }

Insert Table Entry

v2.8.2+

POST /api/db/table/{tableName}/insert

Insert a single entry in a table. If no id is provided, the next db_id will be used.

Body

FieldValueType
id (optional)row id, will be generated if not providedstring
columName1value for the columnstring
...value for the columnstring
{ "id":"123", "col1": "test" }

Update Table Entry

v2.8.2+

POST /api/db/table/{tableName}/update

Update a single entry in a table.

Body:

FieldValueType
idrow to updatestring
columName1value for the columnstring
...value for the columnstring
{ "id":"123", "col1": "test", "col2": "test2" }

Upsert Table Entry

v2.8.2+

POST /api/db/table/{tableName}/upsert

Updates or inserts (if id does not exist) a single entry in a table.

Body:

FieldValueType
idrow to update/insertstring
columName1value for the columnstring
...value for the columnstring
{ "id":"123", "col1": "test", "col2": "test2" }

Add Comment to Table Entry

v2.9.0+

POST /api/db/table/{tableName}/commentHistoryEntry

Adds a comment history entry for an existing field. If the current content is not the expected format, it will be replaced with the posted single entry comment history.

Body

FieldValueType
idrow to updatestring
columncolumn to updatestring
textEntry textstring
userEntry userstring
imgUrl (optional)Entry imgstring
{ "id":"A", "column": "col1", "text": "Some text for the entry", "user": "User 1" }

Bulk Insert

v2.8.2+

POST /api/db/table/{tableName}/bulk/insert

Inserts multiple entries in a table. If no id is provided, the next db_id will be used.

Body [Array]:

FieldValueType
id (optional)row id, will be generated if not providedstring
columName1value for the columnstring
...value for the columnstring
[ { "id":"123", "col1": "test" },{ "col1": "test2" } ]

Bulk Update

v2.8.2+

POST /api/db/table/{tableName}/bulk/update

Updates multiple entries in a table.

Body [Array]:

FieldValueType
idrow to updatestring
columName1value for the columnstring
...value for the columnstring
[ { "id":"123", "col1": "test" },{ "id":"2", "col1": "test2" } ]

Bulk Upsert

v2.8.2+

POST /api/db/table/{tableName}/bulk/upsert

Updates or inserts (if id does not exist) multiple entries in a table.

Body [Array]:

FieldValueType
idrow to updatestring
columName1value for the columnstring
...value for the columnstring
[ { "id":"123", "col1": "test" },{ "id":"2", "col1": "test2" } ]

Delete Table Entry

DELETE /api/db/table/{tableName}/delete/{id}

Deletes a single entry in a table.

Body:

FieldValueType
tabledb table namestring
idslist of ids to deletearray
{ "table": "test", "ids": ["1","2"] }
Last updated on