07-25-2021 08:37 AM
Hi
I am having an API that responds back with a dummy image as the body of response, that API works fine as long as I am using it outside of snaplogic on tools such as postman.
but when same I try to execute via REST POST snap, it routes to the error view even though execution in that test is done via snaplogic is successful.
body of response looks like this :
Let me know how snaplogic handles API calls when the response is of image type
Thanks
07-25-2021 01:01 PM
Hi Rahul,
Good day, try setting the Rest Post snap “response entity type” to binary then encode/decode the entity response to be able to save the response as a file
You can use a mapper snap to output as binary and connect to a file writer snap
Thanks