REST API Response text/html
Summary
REST API Response text/htmlContent
Hi,
I have REST API with POST method when invoked it provides resposne in the json format but the content type of API is text/html.
In this case, while modelling integration in OIC, the REST connection response if i provide json response and json type it fails during runtime as API content type is text/html.
during runtime integration fails with error : response is application/json but expected text/html.
in this case, should i set the REST connection response type as raw and application/octet-stream and then use stage file to read the content of it and process? as this API Response i have to map to subsequent connections in OIC.
Tagged:
0