How to get raw data when we post the rest services?
Hi,
I learning Cache Rest Services and I trying to implement it.
I learned get method in rest services.
I need to know How to get raw data (like json, xml, text....etc.) when we post the rest services?
Thank you
Discussion (4)0
Comments
%request.Content will provide you the raw string (or stream) contained on your request payload.
your answer helps me
![]()
Thanks Chris Stewart
Hi Manoj
There's example code of reading a JSON string from a POST request, and then transforming it to an object in
https://community.intersystems.com/post/lets-write-angular-1x-app-cach%C3%A9-rest-backend-part-9
Hope that helps
Chris
In addition, %request.Data contains any parameters included in the URL.