Working with API
API (Application Programming Interface) is a set of rules and tools that allow different programs to interact with each other.
Main types of API requests:
• GET: Receiving data (for example, a list of objects).
• POST: Sending data (for example, generating a report).
• PUT: Updating data (for example, a change in an account).
• DELETE: Deleting data.
The API returns data in JSON or XML format, which makes it convenient for processing.
Working with API requests in the Pilot system is organized taking into account the infrastructure, including servers divided into several nodes, for example, BLADE, KSA, AFRICA.
When sending API requests with an indication of a specific node, the request goes to the selected server, where it is immediately processed and a response is returned. This avoids unnecessary redirects and delays, ensuring fast processing of requests.
How to specify node in a request?
When sending a request to the API, add the node parameter with the node number as its value.
Example request.
|