Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
REST API Response text/html — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

REST API Response text/html

Received Response
37
Views
4
Comments
edited Jul 19, 2019 4:35AM in Integration 4 comments

Summary

REST API Response text/html

Content

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!