Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Defining structure on REST with the Service Studio

$
0
0
Kilian Hekhuis wrote:
Ronald,

I'm not sure what you mean. Are you consuming a REST API? In that case, you can paste the JSON into the "Response" in the Body tab of the consumed method, and Service Studio will create the necessary structures for you.
 Hi Kilian,
Thanks for your reply. Yes indeed I'm consuming a REST API via the TEST facility in the Service Studio.
However that API's response is a XML stream (not JSON). I did convert the XML stream to JSON format.
From your answer I understand that when the output is already JSON at response time and I then hit the "Copy to Response Body" button in the Service Studio then the structure is automatically generated for me.
Do I understand you correctly in this.
If so : Should this automatic generation also be working when I paste my own converted JSON string in the body part by hand?
Regards Ronald
 

Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>