cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Semantic URL Example

jsgeronimo
New Contributor II

Hi,

I would like to know how to correctly pass data via Semantic URL (as a Triggered Task via URL)?

Here is what I did:

Edit Pipeline Properties:
26 pm

I created an exampleId variable, if I wanted to pass a value of 1 to the exampleId variable:

https://elastic.snaplogic.com:443/api/1/rest/path/to/my/project/pipelineName/exampleId/1

What I have working is:

https://elastic.snaplogic.com:443/api/1/rest/path/to/my/project/pipelineName/?exampleId=1

18 REPLIES 18

Yes certainly.

do split to get those into array.

_PATH_INFO.split('/') 

Then use the .map function to form a JSON object with key value pair.

Thank you! Finally got it to work!

@jsgeronimo, Could you please share the map function used to doing this use case as I have a similar requirement

Can you provide your full requirement, it might be easier to help if we know what youโ€™re interested in.

Please ignore. I was making a mistake at my end. Explanation in the post is pretty clear