{question}
How to enable HTTP API on SingleStoreDB Cloud?
{question}
{answer}
HTTP API is ON by default on the SingleStoreDB Cloud cluster. However, one can test it with the following command. If the command fails or HTTP API is not enabled for your cluster, Reach out to SingleStore Support. Click here to learn about How to File a Support ticket.
After Data API (HTTP API) is enabled, you can call the GET /ping
API request to verify that the HTTP service is running and connectable. To perform this action using cURL, invoke a GET request to the /ping
endpoint with no parameters, as shown below.
curl https://svc-10444e3f-afeb-46be-b186-a8c64b99f726-dml.aws-ireland-1.svc.singlestore.com/ping
If the Data API service is available and can respond to requests, you will receive the following response along with a 200 OK status code, indicating a successful HTTP response.
pong
If an error occurs, you will receive one of the HTTP response status codes listed here, along with the error description in the response body. For more information, refer to the Data API Endpoint Reference.
The GET /ping
request can only verify whether the HTTP service is running and connectable. To confirm that the database can receive queries, use the /exec
and /query
endpoints as explained here.
Endpoint svc-10444e3f-afeb-46be-b186-a8c64b99f726-dml.aws-ireland-1.svc.singlestore.com
The endpoint information can be gathered from the portal.singlestore.com -> Choose the cluster -> Overview tab -> Connect section
Click here to learn more about Data API.
{answer}