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

Including payload in REST Get Snap

Toby
New Contributor II

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

1 ACCEPTED SOLUTION

Try passing the path and its value as a query parameter. Their documentation suggests this should work:

View solution in original post

5 REPLIES 5

igormicev
Contributor

Havenโ€™t you looked with the Rest POST snap. Why do you must use the Rest Get with a payload? - not typical.

ptaylor
Employee
Employee

Please read this discussion:

Can you please be more specific about the REST API youโ€™re calling? Is it from a 3rd party, or is it one you have control over? Is it exceedingly non-standard and non-REST-conforming for a GET request to require a payload.

Toby
New Contributor II

Yes, I agree but I have not control over it. Itโ€™s the List API here >>> Workspace API 2.0 | Databricks on AWS.

Iโ€™ve tried Post but the API isnโ€™t listening for it, the only option is READ with a payload, which is trivial through code or tools such as Postman, but I canโ€™t find a way through Snap. Any ideas welcome! Thanks.

Try passing the path and its value as a query parameter. Their documentation suggests this should work: