Forum Discussion

Toby's avatar
Toby
New Contributor II
5 years ago
Solved

Including payload in REST Get Snap

Hi, I need to call a REST GET method but it needs a payload e.g. {“path”: “xyz”}. I can’t find anyway to call a GET endpoint and include a payload in Snaplogic, does anyone have a solution? Thanks

5 Replies

  • I think I was not clear.
    Basically, I would need to Union to happen with adding a separation of level between the 2 elements unioned.

    Such as:
    {
    field1: val1
    field2: val2
    }
    Union to
    {
    content: val
    }

    Is generating the result as:
    {
    {field1: val1
    field2: val2
    }
    {content:val}
    }

    So I could refer to the first part with $.1 independantly from $.2

    Does this make more sense?
    Thanks,

      • eric_sou's avatar
        eric_sou
        New Contributor III

        Hi Ajay,
        Thanks for your idea. However, this join is extending the size of the row with 2 more fields, whereas I would not like to add them carried over all the 1st generator data, as this will repeat and is useless.

        The idea is more to go with Union but to separate isolated data from 1st generator and 2nd.