The Table Description API allows you to manage and interact with table descriptions in your database. This includes endpoints to synchronize schemas, refresh table descriptions, update table descriptions, and retrieve table descriptions. Below is a guide on how to use these endpoints effectively.
Description: Scans and synchronizes schemas based on the provided table description IDs. This endpoint updates table descriptions to reflect the current state of the database schema.
Description: Refreshes the table descriptions for a given database connection ID. This updates the table descriptions based on the current schema of the specified database connection.
db_connection_id: (Required) The ID of the database connection.
table_name: (Optional) The name of the table to filter by.
Description: Retrieves a list of table descriptions for the specified database connection. Optionally, filter by table name.
Response:
5. Retrieve a Table Description
Endpoint:/api/v1/table-descriptions/{table_description_id}Method:GETDescription: Retrieves the details of a specific table description identified by table_description_id.
Response:
Example Usage
Synchronizing Database Schemas
To synchronize database schemas, send a POST request to /api/v1/table-descriptions/sync-schemas:
Request:
Response:
Refreshing Table Descriptions
To refresh table descriptions, send a POST request to /api/v1/table-descriptions/refresh:
Request:
Response:
Updating a Table Description
To update a table description, send a PUT request to /api/v1/table-descriptions/{table_description_id}:
Request:
Response:
Listing Table Descriptions
To list table descriptions, send a GET request to /api/v1/table-descriptions: