|
9 | 9 | - [ApiKeyRestClient](#ApiKeyRestClient)
|
10 | 10 | - [CookieRestClient](#CookieRestClient)
|
11 | 11 | - [OAuth2AuthorizationCodeRestClient](#OAuth2AuthorizationCodeRestClient)
|
| 12 | + - [Platform API Clients](#PlatformAPI-Clients) |
12 | 13 | - [PlatformApiRestClient](#PlatformApiRestClient)
|
13 | 14 | - [PlatformApiLogicClient](#PlatformApiLogicClient)
|
14 | 15 | - [JSON Schema Converter](#JSON-Schema-Converter)
|
@@ -137,6 +138,9 @@ Handles both V1 and V2 of the NTLM Protocol.
|
137 | 138 | const Client = new NtlmRestClient(emitter, cfg);
|
138 | 139 | ```
|
139 | 140 |
|
| 141 | +## Platform API Clients |
| 142 | +A number of Platform API Client classes are available to use and extend them to create Clients for Platform API. |
| 143 | + |
140 | 144 | ### PlatformApiRestClient
|
141 | 145 | [PlatformApiRestClient](https://github.com/elasticio/component-commons-library/blob/master/lib/authentication/PlatformApiRestClient.ts)
|
142 | 146 | class extends [BasicAuthRestClient](#BasicAuthRestClient) class.
|
@@ -176,8 +180,8 @@ const Client = new PlatformApiLogicClient(emitter, cfg);
|
176 | 180 | - fetchFlowById(id) - Fetch flow by it's id
|
177 | 181 | - fetchFlowByNameAndWorkspaceId(flowName, workspaceId) - Fetch flow by flow name and workspace id
|
178 | 182 | - changeFlowState(options) - Given a flow, change the flow to a given state (running, stopped, etc)
|
179 |
| -- startFlow(flowId, options = {}) - sets the flow to active running state |
180 |
| -- stopFlow(flowId, options = {}) - sets the flow to inactive stopped state |
| 183 | +- startFlow(flowId, options) - sets the flow to active running state |
| 184 | +- stopFlow(flowId, options) - sets the flow to inactive stopped state |
181 | 185 | - hydrateFlow(options) - Hydrates the flow using removeNonWritableProperties method, but additionally enriches the flow with all data samples, credential names, command and component Id fields.
|
182 | 186 |
|
183 | 187 | ## JSON Schema Converter
|
|
0 commit comments