Report Web Services
Universal Controller supports the following RESTful-based web service for Report.
Formatting specifications for the web service, including details about parameter requirements, are provided.
Run Report
Description | |
|---|---|
URI | http://host_name/uc/resources/report/run |
HTTP Method | GET |
HTTP Header | Accept
|
Description | Run report. Chart reports are generated in png format ("image/png") List reports are generated in pdf format (application/pdf), by default.
|
URI Parameters | See Run Report: URI Parameters, below. |
Example URI |
|
Authentication | HTTP Basic |
Example Responses | See Run Report Examples, below. |
Run Report: URI Parameters
Parameter | Description | Specifications | Required |
|---|---|---|---|
| If | To run a report that is visible to multiple groups, you can specify any one of the groups that the report is visible to. | N |
| Title of the Report. | Y | |
| Users that will be able to view this report. | Valid Values:
If there are multiple reports with the same title:
| N |
Run Report Examples
- JSON
- XML
- CSV
JSON
{
"rows": {
"rowCount": 2,
"rows": [ {
"columns": [ {
"label": "Task Name",
"value": "t1"
}, {
"label": "Type",
"value": "Workflow"
}, {
"label": "Task Description",
"value": ""
} ]
}, {
"columns": [ {
"label": "Task Name",
"value": "t2"
}, {
"label": "Type",
"value": "Workflow"
}, {
"label": "Task Description",
"value": ""
} ]
} ]
},
"title": "test report",
"totalRows": 2
}
XML
<report>
<rows rowCount="2">
<row>
<columns>
<column label="Task Name">t1</column>
<column label="Type">Workflow</column>
<column label="Task Description" />
</columns>
</row>
<row>
<columns>
<column label="Task name">t2</column>
<column label="Type">Workflow</column>
<column label="Task Description" />
</columns>
</row>
</rows>
<title>test report</title>
<totalRows>2</totalRows>
</report>
CSV
Task Name,Type,Task Description
t1,Workflow,,
t2,Workflow,,