To access a reports information the report parameter is required either using GET or POST method. The informations contains meta data about the report, not any rendered results.
Request the meta information for a given report. Requires the parameter report to be set.
| REQUEST Fields | Value Type | Description |
|---|---|---|
| report | string | The location of the report |
| RESPONSE Fields | Value Type | Description |
|---|---|---|
| reportTitle | string | The title of the report |
| author | string | The authors name |
| comments | string | Comments saved in the report |
| keywords | string | A list of keywords saved in the report |
| subject | string | A subject saved in the report |
| template | string | A template name saved in the report |
| created | number | The timestamp of the reports creation |
| lastSaved | number | The timestamp when the report was last saved |
Note: not all Response fields have to be set.
# Request GET /api/reporting/report?report=myPromptReport.rpt HTTP/1.1 Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u # Response - Task will be executed HTTP/1.1 200 OK Content-Type: application/json Content-Length: <CONTENT LENGTH> { "created": 1288186446000, "reportTitle": "My Prompt Report", "lastSaved": 1399024868000 }
# Browser access http://127.0.0.1:9000/api/reporting/report?report=myPromptReport.rpt # Shell access using curl curl -LsH "Authorization: Bearer <access_token>" "http://127.0.0.1:9000/api/reporting/report?report=myPromptReport.rpt" # Shell access using curl using username and password curl -Lsu username:password "http://127.0.0.1:9000/api/reporting/report?report=myPromptReport.rpt"