Call GET getaboutdata with your Pro2 log-in credentials to get a JSON report of the version of a Pro2 instance.

About this API

The GET version information API is a REST API that, when called, queries a Pro2 instance for the version release that it is using. You specify the instance host name and port in the URL of the call. To ensure security, you include the log-in credentials for your account in the query. The request returns version information, for example, OpenEdge Pro2 Version 6.1.

Request

Direct the API call to the URL:

http://host_name:port/pro2/rest/Pro2/DPR?dMode=System/getaboutdata
Request format example as a curl command:
curl 
-X GET 
-u username:password 
-v http://host_name:port/pro2/rest/Pro2/DPR?dMode=System/getaboutdata

Response

The response returns a data-set report of version information in JSON format.

The following is an example response:
{
  "ProDataSet": {
    "ttAbout": [
      {
        "ttTitle": "OpenEdge PRO2 Version 6.1",
        "ttDate": "Build: Tue, 11 Feb 2020 05:13:30",
        "ttVersion": "Version: 6.1"
      }
    ]
  }
}