Skip to content

API / database

39 routes in the database family. Inventory says whether the route is also listed in the API command catalog; Registered in is the file that mounts it.

Base URL: http://localhost:8080 β€” see Network Contract.

Method Path Summary Inventory Registered in
DELETE /api/database/query schema not modeled no botserver/crates/botdatabase/src/routes.rs
GET /api/database/query schema not modeled no botserver/crates/botdatabase/src/routes.rs
POST /api/database/query Run a read-only SQL query (SELECT) against the workspace database yes botserver/crates/botdatabase/src/routes.rs
PUT /api/database/query schema not modeled no botserver/crates/botdatabase/src/routes.rs
DELETE /api/database/schema schema not modeled no botserver/crates/botdatabase/src/routes.rs
GET /api/database/schema Read the database schema: tables, columns and types yes botserver/crates/botdatabase/src/routes.rs
POST /api/database/schema schema not modeled no botserver/crates/botdatabase/src/routes.rs
PUT /api/database/schema schema not modeled no botserver/crates/botdatabase/src/routes.rs
DELETE /api/database/table schema not modeled no botserver/crates/botdatabase/src/routes.rs
GET /api/database/table schema not modeled no botserver/crates/botdatabase/src/routes.rs
POST /api/database/table Create a table from a column list yes botserver/crates/botdatabase/src/routes.rs
PUT /api/database/table schema not modeled no botserver/crates/botdatabase/src/routes.rs
DELETE /api/database/table/:param Drop a table and its data (destructive; confirm first) yes botserver/crates/botdatabase/src/routes.rs
GET /api/database/table/:param schema not modeled no botserver/crates/botdatabase/src/routes.rs
POST /api/database/table/:param schema not modeled no botserver/crates/botdatabase/src/routes.rs
PUT /api/database/table/:param Alter a table (add, rename or change columns) yes botserver/crates/botdatabase/src/routes.rs
GET /api/database/table/:param/column schema not modeled no botserver/crates/botdatabase/src/routes.rs
POST /api/database/table/:param/column Add a column to an existing table yes botserver/crates/botdatabase/src/routes.rs
DELETE /api/database/table/:param/data schema not modeled no botserver/crates/botdatabase/src/routes.rs
GET /api/database/table/:param/data List rows of a table with optional filter, order and paging yes botserver/crates/botdatabase/src/routes.rs
POST /api/database/table/:param/data schema not modeled no botserver/crates/botdatabase/src/routes.rs
PUT /api/database/table/:param/data schema not modeled no botserver/crates/botdatabase/src/routes.rs
DELETE /api/database/table/:param/export schema not modeled no botserver/crates/botdatabase/src/routes.rs
GET /api/database/table/:param/export Export every row of a table as CSV yes botserver/crates/botdatabase/src/routes.rs
POST /api/database/table/:param/export schema not modeled no botserver/crates/botdatabase/src/routes.rs
PUT /api/database/table/:param/export schema not modeled no botserver/crates/botdatabase/src/routes.rs
GET /api/database/table/:param/foreign-keys List the foreign keys of a table and the tables they reference yes botserver/crates/botdatabase/src/routes.rs
DELETE /api/database/table/:param/row schema not modeled no botserver/crates/botdatabase/src/routes.rs
GET /api/database/table/:param/row schema not modeled no botserver/crates/botdatabase/src/routes.rs
POST /api/database/table/:param/row Insert a row into a table; body is a JSON object of column values yes botserver/crates/botdatabase/src/routes.rs
PUT /api/database/table/:param/row Update a row identified in the body; values change only the given columns yes botserver/crates/botdatabase/src/routes.rs
DELETE /api/database/table/:param/row/:param Delete one row by primary key (destructive; confirm first) yes botserver/crates/botdatabase/src/routes.rs
GET /api/database/table/:param/row/:param schema not modeled no botserver/crates/botdatabase/src/routes.rs
POST /api/database/table/:param/row/:param schema not modeled no botserver/crates/botdatabase/src/routes.rs
PUT /api/database/table/:param/row/:param Update one row by primary key; body is a JSON object of columns to change yes botserver/crates/botdatabase/src/routes.rs
DELETE /api/database/table/:param/rows/batch-delete schema not modeled no botserver/crates/botdatabase/src/routes.rs
GET /api/database/table/:param/rows/batch-delete schema not modeled no botserver/crates/botdatabase/src/routes.rs
POST /api/database/table/:param/rows/batch-delete Delete several rows by id in one call (destructive; confirm first) yes botserver/crates/botdatabase/src/routes.rs
PUT /api/database/table/:param/rows/batch-delete schema not modeled no botserver/crates/botdatabase/src/routes.rs

All families