Forum Discussion
Using File Writer Snap you can capture/store the incoming data in a file.
Hi,
Thanks for reply.
Json Parser snap is the first snap in my pipeline and when the input request is valid and able to parse it and then i can able to capture it using Mapper snap (above screenshot for ref.).
But, if the input request is not valid and failed at parser snap. then i donno how to capture that input data.
So, Not sure how File Writer snap can help to capture the input request from parser snap? Can you please explain where i should use it in the flow.
Thanks.
- akidave5 years agoEmployee
It is possible to set the response code for a triggered task. Use a Document to Binary snap as the final snap and set a binary header property called
status
, the integer value for that property will be the response code for the API call. For example, the attached pipeline returns a 409 response codeIf more fine-grained control is required on the API response, the API management functionality which is a subscription feature allows for full control on the API response.
reds_2020_09_22.slp (3.2 KB)
- Henchway5 years agoContributor
Thank you!
- scotth4 years agoNew Contributor II
Is it only the Status code that can be modified? i.e. the body of the message returned to the POSTing system is:
{
“http_status_code”: 200
}
Are you saying there is no way to control this body response?- cjhoward184 years agoEmployee
If you use the document to binary snap method as mentioned above, the $content field in the document being transformed to binary becomes the response body, and the rest of the fields are treated as response headers.
- scotth4 years agoNew Contributor II
@Spiro_Taleski
@cjhoward18
Both great solutions, thanks. - Henchway5 years agoContributor
Thanks, that’s a pity. ☹️
BR
Thomas
Related Content
- 2 years ago
- 2 years ago
- 3 years ago
- 2 years ago