Instructions for creating data sources in the system - http://192.168.1.52:8081/confluence/pages/viewpage.action?pageId=13272439
The plugin contains the implementation of datasources operating on the RESTful API.
Described data sources allow for read and transfer data between the PlusWorkflow system and an external API using the HTTP protocol methods (GET, POST, etc.).
It is also possible to communicate with the PWFL system's internal API. In this case, use "localhost" in the URL
Configuration description:
Name of the parameter | Description | Optionality | ||||||
---|---|---|---|---|---|---|---|---|
Authorization | Request authorization scheme. If the requested endpoint does not require authorization, leave the field blank. Description of defining authorization templates is HERE. | Optional | ||||||
Additional headers | The parameter allows adding additional headers to the request. The parameter can be used, for example, to force a response from the API in JSON format. In this case, add a row in the described parameter and enter "Accept" in the "Header" field, and "application/json" in the "Value" field. A properly configured API should return data in JSON format on request with the above header or reply with an error in case this request cannot be answered in JSON format. | Optional | ||||||
HTTP method | List of HTTP protocol methods. Available methods: GET, HEAD, POST, PUT, DELETE, PATCH. Choose the required request method according to the API documentation. | Required | ||||||
URL | Endpoint URL to which the request will be sent. If you call an action from the API of the same PlusWorkflow system in which the datasource is configured, the URL must contain the domain "localhost". | Required | ||||||
Content-Type | The parameter allows defining the format of the data transferred in the body of the request. The parameter is used only if the "Parameters Body" type parameters are among the input parameters. In other cases the value of this parameter does not matter. | Required | ||||||
Input parameters |
| Optional | ||||||
Output parameters |
| Optional |