Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9269

Re: JSON deep insert returns atom/xml

$
0
0

A simple trick to get a json response from a POST request when testing with either the Gateway Client or any browser-based REST Client is to add the following header to the request:

 

Accept          application/json

 

No need to use $batch in this case unless you're really batching requests.

You can use this with any HTTP method supported.


Viewing all articles
Browse latest Browse all 9269

Trending Articles



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