Web application for slang
Clone the repository and run:
mvn spring-boot:run
This is web application that allows to run Slang content. By default it uses H2 in memory DB but can be configured to use any other DB in:
slang-webapp\src\main\resources\spring\slangWebappContext.xml.
The actions that can be done are:
- Trigger a Slang flow. The flow must be located on the file system of the server. Full path to the flow is passed during the trigger together with Slang directory and inputs.
- Get the result of the run of a triggered flow.
In order to do that we have 2 REST APIs:
-
Trigger the flow:
Method: POST URL: /executions Example for Body: {"slangFilePath":"<LOCATION>\\slang-content\\org\\cloudslang\\slang\\base\\print\\print_text.sl","slangDir":"<LOCATION>\\slang-content\\org\\cloudslang\\slang","runInputs":{"text":"blabla"}}
-
Get the results:
Method: GET URL: /executions/{executionId}