API Usage
How to use the Arcsec API for database operations
The API endpoint can be called in several ways programmatically. Below are examples of how to call the API endpoint using different methods.
Using cURL
You can use the curl command to make a request to the API endpoint.
Using JavaScript Fetch API
You can use the fetch API to make a request to the API endpoint.
Response Format
The API endpoint will respond with a JSON object. Below are the possible responses:
Successful Read Query
For a successful read query, the API will respond with a JSON object containing the query results. This might be SELECT queries, but could also be other types of queries like SHOW or DESCRIBE.
Successful Modification Query
For a successful modification query, the API will respond with a JSON object containing the query results. This might be CREATE, INSERT, UPDATE, or DELETE queries.
Error Response
If the API encounters an error, it will respond with a JSON object containing the error message.