Forum Discussion

jsgeronimo's avatar
jsgeronimo
New Contributor II
8 years ago

Semantic URL Example

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:

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

  • rashmi's avatar
    rashmi
    New Contributor III

    PIMData.txt (1.8 KB)

    hi @bojanvelevski i was trying to frame that structure will share the sample input and xsd pls could u help pls
    samplerecords.json (262 Bytes)
    Please convert PIMData.txt to PIMData.xsd as the template is in that format
    Please also find output expected xml in txt format
    outputxml.txt (3.2 KB)

    • alchemiz's avatar
      alchemiz
      Contributor III

      Hi rashmi,

      Good day, instead of using an xml generator snap have you tried the xml formatter? I don’t know if this is your required output but xml formatter accepts an outgoing format as XSD

      XML output using PIMData.xsd

      Updates:

      ,

      I’m not that familliar with XSD so I manipulate the sample input using a mapper snap, attached poc pipeline

      canvas 15_2022_12_03.slp (16.8 KB)

      Thanks,
      EmEm