Nazwa wtyczki | Data utworzenia | Data ostatniej aktualizacji | Link do instalki | Krótki opis | Dział utrzymujący | Dokumentacja dla klienta | Typ licencji | Typ wtyczki | Id wtyczki |
---|---|---|---|---|---|---|---|---|---|
DS - REST DataSource | 2020-05-28 | 2024-11-13 | Link | Za pomocą opisywanej wtyczki oraz komponentów operujących na źródłach danych można odczytywać jak i przekazywać dane z systemu PlusWorkflow do dowolnej bazy danych skonfigurowanej poprzez opisywane poniżej połączenie | Dev CUF | Płatna | Wtyczka | com.suncode.plugin-rest-datasources |
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. Should use custom header? Use "Additional headers" to set "Content-Type" with your own proper value. | Required | ||||||||||
Response Content-Type | Parameter specifies data format of incoming API response. | Required | ||||||||||
Input parameters |
| Optional | ||||||||||
Output parameters |
| Optional | ||||||||||
Connection timeout [s] | Timeout parameter for connection to the REST service. The default parameter value is 60 seconds. | Required |
Component allows displaying raw data preview (generated JSON schema, API response, API response headers). To use raw data preview feature please use "Show raw data" button (the very bottom of data source configuration window) then fill in required input parameters and finally click the "Execute datasource" button.
Sample raw data preview window:
Configuration samples:
Datasource configuration | API response | Description |
---|---|---|
{ message: "user was created" } | The source adds the user to the example.com API and responds with a message from the server and reads all cookies values. |
Datasource configuration | API response | Description |
---|---|---|
{ data: [ { ..., userName: "admin", ... }, { ..., userName: "administrator", ... } ], total: 2 } | The datasource returns a list of PlusWorkflow system user names, containing the value passed in the "filter" parameter and the number of all results returned for each returned username.
(executed with following query param: filter="admin") |
Add Comment