Hi Community,
I am new to outsystems I am unable to consume one API it is showing me in HTML format .
Can someone help me to understand how it works here in outsystems.I have gone through documentations and various forum posts but getting in same format.
Please ping me personally will share the API details.
Thank you.
Hi @Sanji San,
It seems like you are trying to consume an API but the response is coming back as HTML instead of the expected format (like JSON or XML).
Ensure you are consuming the correct endpoint of the API.
Test the API using tools like Postman or curl to confirm it returns the expected format (e.g., JSON).
I have provided the post link below, which might help resolve your issue.
https://www.outsystems.com/forums/discussion/47959/html-to-json/
Thanks,
Vipin Yadav
Hi @Sanji San
I try the deriv Explorer API to get Active symbol but it give the response in form of HTML which is basically the Home page of deriv API.
Read the document and try to hit the correct endPoints.Regards ,Rajat
That address is for the test page. It is HTML so humans can use it.
After you register, you get all the URLs you need.
Hi Nuno,Thank you for replying.
I have registered and created new account but still it is showing the same page unable to get the proper endpoints.
Hi,
Please share the API endpoint if not having any secure content so that will consume and test it and share oml file to you.
Hi All,
Actually it's not an API it's a webSocket which we need to use for consuming the data.So does anyone have any idea or supported plugin used to consume data from websocket
Hi Sanji,
OutSystems does not support websockets. You'll need to build something outside OS, and interface with that, if you want to use them.
Please take a look at this .oml file
Unfortunately, we're delving into non-OS territory now. Accessing websockets via JavaScript has little to do with OutSystems. I'd advise you to ask on a different forum, like Stack Overflow. I'm going to close this topic now.