Hello .
I am using OpenEdge 10.2B08 . I need to make a call to REST API from OpenEdge . Does any body have a sample code for making the call to REST API from Progress .
Thanks in advance .
For OE 10.2B would properly use cURL command line tool to consume REST services.
Example curl systax:
curl -H "Content-Type: application/json" -X GET 192.168.100.100/.../tokens
curl -H "Content-Type: application/json" -X POST192.168.100.100/.../tokens
curl -H "Content-Type: application/json" -X PUT 192.168.100.100/.../tokens
curl -H "Content-Type: application/json" -X DELETE 192.168.100.100/.../tokens
Since REST seams to focus around using JSON as the messaging payload and in some cases XML. You will need to able to create and parse JSON from the ABL. I don't think this can be natively done from 10.2B. Upgrade to 11.3+ or use a 3rd party DLL to parse the JSON response. www.progresstalk.com/.../json-parser.118139
Google around on cURL and REST