Use GET /idd/<version>
to retrieve the list of types in the specified version of IDD
A successful /idd/<version>
transaction returns a tree object containing all the types defined in the IDD file of the selected version. An abbreviated example is shown below.
{ "state": { "disabled": false, "opened": true, "selected": false }, "id": "root", "li_attr": null, "a_attr": null, "type": "IDDRoot", "text": "IDD v9.3.0 (build baff08990c)", "data": null, "children": [ { "state": null, "id": "simulation_parameters", "li_attr": null, "a_attr": null, "type": "Group", "text": "Simulation Parameters", "data": null, "children": [ { "state": null, "id": "version", "li_attr": null, "a_attr": null, "type": "ObjectType", "text": "Version", "data": null, "children": [] }, ... ] }, ... ] }
Send the /idd/<version>
command using curl:
curl https://api.ensims.com/jess_web/api/idd/9.3
On success, the IDD types tree will be returned in a JSON object. If the requested version does not exist, an HTTP 404 Not Found error will be returned.
Make sure Requests is correctly installed in your Python environment, and run the following lines:
import requests # The IDD data does not require security r = requests.get('https://api.ensims.com/jess_web/api/idd/8.9') # Show returned object r.json()