The “External Api Logs” module for the EspoCRM platform provides functionality for logging requests and responses to external APIs. It allows adding API request/response data to the ApiLog entity.
The module enables the storage of information about each request and its associated response in a database. The ApiLog entity includes the following data:
- Request ID: a unique identifier for each request, ensuring its traceability.
- Timestamp: the date and time when the request was sent.
- URL: the address of the external API to which the request was made.
- Request method: the type of request (e.g., GET, POST, PUT, DELETE).
- Request parameters: the parameters passed in the API request.
- Request body: the content of the request (e.g., JSON or XML).
- HTTP response code: the HTTP status code returned in response to the request.
- Response body: the content of the response from the external API.
The “External Api Logs” module provides a simple interface for recording request and response data in the ApiLog. Developers can utilize this module in their EspoCRM projects to obtain and store detailed information about interactions with external APIs. This facilitates tracking, analysis of request execution, as well as aiding in system debugging and monitoring.