This document outlines the steps required to execute the Pipeline using the Rubiscape API.- The process involves obtaining a login token, preparing the necessary parameters, defining the API endpoint and request body, making the API call and handling the response.
|
API Endpoint |
|
|
HTTP Request Method: |
POST |
|
Parameters |
"username": "U2FsdGVkX187ruk+Uu3O89+ava/mT9ZAciikLGEKZyAyRV88fK0tR8eDgTYPTNRFwC", "password":
"U2FsdGVkX19gw/Hhy3zUM+RqYjXfagLtufrGbg2XCmQqIA=" |
|
Notes |
· Username and Password must be in encrypted format. · For Encrypted Username and Password, contact Rubiscape Team. · Make POST API call to above login API. · Use the obtained Sessionkey in the subsequent API calls. |
|
Parameters |
Example |
Remark |
|
backurl_R: |
Adjust according to host. |
|
|
PipelineName: |
‘Pipeline_Name’ |
Adjust according to required Pipeline. |
|
withData: |
False |
Set this flag to True if data needs to be sent. |
|
inputData: |
{“feature1”:[values],”feature2”:[values]} |
If withData flag is True, send data in dictionary format |
|
projectName: |
‘project_Name’ |
Adjust according to project name. |
|
workspaceName |
‘workspace_Name |
Adjust according to workspace name. |
|
SessionKey |
‘y05cqb9wibt7xcaii2vbh38xvqhb62wf’ |
Adjust the session key according to the authenticated session key obtained from the login API. |
|
setWFVariables |
{"abc":40,"pqr":41} |
These are variable names and values which are set when the Pipeline is executed. |
- This functionality lets you update the variable values runtime while executing pipeline externally.
- These values get considered in the pipeline execution and in the tasks wherever referenced.
- To set variable values, as can be seen in sample python code added above, you need to add the 'setWFVariables' key in the payload json of pipeline run.
- This key has value of dictionary with variable name and variable values.
- Note that, the name of variables defined at Pipeline level should match with the names defined in the dictionary at setWFVariables. However if not matched then this will not fail the Pipeline execution, only the proper update of variable values won't take place and values defined at pipeline level will get considered.
- The external pipeline execution will not directly update the respective variable values on the modal, these get only considered during that pipeline run in the respective references in the task.