Connect> Features> API Query

API Query

Provide a REST-type API that returns database queries.

API Query Listing

The listing screen displays all the Query APIs in the environment, allowing users to view the Method Name (equivalent to the endpoint generated for the integration call), last modification date, active integration indicator, and the URL parameters that can be sent.

In the actions tab, you can call the endpoint URL, go to the editing screen, delete the record, export (for backups or migration) or navigate to the integration monitoring screen.

Creating an API Query

Available fields and their respective functionalities:

Calling an API Query

The URL to call the QueryAPI can be obtained after performing an API test, with the URL parameters already indicated (if they have been defined):

The endpoint generated by CONNECT has the format HOST/ENVIRONMENT/FUNCTIONALITY/IDENTIFIERS, for example:

Example of a call with Authorization

curl --location --request GET 'https://seniorconnect.com.br:9010/connect-demo/consultaapi/Db-Senior-Exercicios/busca-r034fun-numcad/?numcad=12' \

--header 'Authorization: Bearer MyBearerToken'

Did this article help you?