@@ -11,12 +11,14 @@ using the built-in Loopback WebService Connector instance, but the code is not l
11
11
to local execution, it is only the ScriptRunner endpoint URL that needs more attention
12
12
from remote.
13
13
14
+ ## API Endpoints
15
+
14
16
The ScriptRunner WebService Connector provides three different endpoint APIs to start an Action:
15
17
- Action OData API, on http[ s] ://server: port /ScriptRunner/ActionContextItem...
16
18
- Action Webhook API, on http[ s] ://server: port /ScriptRunner/api2/PostWebhook/$ActionID
17
19
- Azure PowerAutomate API, on http[ s] ://server: port /ScriptRunner/api2/StartAction
18
20
19
- WebSvcConnector.ps1 is a container of three main functions, one for each of these endpoints.
21
+ [ WebSvcConnector.ps1] ( ./WebSvcConnector.ps1 ) is a container of three main functions, one for each of these endpoints.
20
22
So after you load (dot-source) the script, you have three functions available:
21
23
22
24
- Start-AsrWebSvcConnector to call the Action OData API,
@@ -26,13 +28,19 @@ So after you load (dot-source) the script, you have three functions available:
26
28
The functions use Windows Integrated Auth (with the current user) by default, but also provide a
27
29
$BasicAuthCreds PSCredential parameter for Basic Authentication.
28
30
For the constructed API URLs to have the correct protocol, host, and port, you specify either
29
- the appropriate ScriptRunner endpoint (like ' http://server:port/ScriptRunner/ ' or
30
- ' https://server:port/ScriptRunner/ ' ; check your ScriptRunner installation to use the correct
31
+ the appropriate ScriptRunner endpoint (like ` http://server:port/ScriptRunner/ ` or
32
+ ` https://server:port/ScriptRunner/ ` ; check your ScriptRunner installation to use the correct
31
33
settings), or the complete API URL.
32
34
33
35
Other parameters provide the appropriate data for the respective API.
34
36
35
- In addition to this WebSvcConnector.ps1 script, there are three scripts, one for each of the
37
+ ## Example Scripts
38
+
39
+ In addition to the [ WebSvcConnector.ps1] ( ./WebSvcConnector.ps1 ) script, there are three scripts, one for each of the
36
40
APIs, that were formerly integrated as sample scripts in your ScriptRunner installation.
37
41
For more details about the scripts, functions, and parameters, check the comprehensive
38
42
Powershell help that is integrated into the scripts.
43
+
44
+ - Action OData API - [ CallASRWebSvcConnector.ps1] ( ./CallASRWebSvcConnector.ps1 )
45
+ - Action Webhook API - [ CallASRWebhook.ps1] ( ./CallASRWebhook.ps1 )
46
+ - Azure PowerAutomate API - [ CallASRWebSvcConnector2.ps1] ( ./CallASRWebSvcConnector2.ps1 )
0 commit comments