Generating REST Reports

To be able to generate REST reports, ensure that you have the View permissions to the Mart and a bearer token. You can generate REST Reports in two ways:

To generate REST reports via CURL command, run the following command:

curl -X GET "http://<server name>:<port number>
/MartServer/api/report/generateReport/
<predefined report name>?additionalProp1=string
&additionalProp2=string
&additionalProp3=string" -H "accept: */*" -H 
"Authorization: Bearer <access token>"

In the above command replace <server name>, <predefined report name>, and <access token> with your information.

An XML report based on the <predefined report name> parameter is generated. For example, if you replace this parameter with Models, the following report is generated, where the Mart had three models available in it:

To generate REST reports via API, follow these steps:

  1. Log on to erwin Mart Portal and on the top pane, click .

  2. Click REST Reports.
    The Mart Reporting API page opens.

  3. Ensure the the Select a definition field is set to Generate Report Using Token.

  4. In the report-controller section, click .

  5. Enter your access token and click Authorize.
    Once authorization is done, click Close.

  6. Expand the GET method and click Try it out.

  7. In the reportName field, enter Models and edit other parameters, if required.

  8. Click Execute.
    The requested report is generated in the in the Responses section. You can copy or download it in the XML format.