It seems that the "request.setHeader("Accept","application/json")" is not working with HTTP-REST plugin 2.0.
I've configured an HTTP-REST host pointing to NSX and an Operation to get an Edge using the URL "/api/4.0/edges/{edgeId}". In the "Invoke Operation workflow" I add the following line:
request.setHeader("Accept","application/json")
This is working perfectly find on a vRealize Orchestrator 6.0.3 with HTTP-REST plugin version 1.0.9 and returns a JSON response. But with vRealize Orchestrator 7.0.0 using HTTP-REST plugin version 2.0.0 it returns a XML response.
How can I get the JSON response using version 2.0.0?
Thanks a lot!
D.