/api/reports/username/:username
Lists all reports available to the specified user.
This resource is available only for Global admin, Domain admin and Users themselves (since BellaDati 2.9.7).
Resource Information
Resource URL | https://service.belladati.com/api/reports/username/:username |
---|---|
HTTP Method |
|
Request Parameters
Parameters | Detail | Example |
---|---|---|
| Username of the user to fetch reports for. | myUserName |
Response Structure
JSON response has following structure:
Name | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
reports | Array that contains multiple report objects with following definition:
|
Sample Request / Response
Using curl
:
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/reports/username/myUserName
The JSON format response:
{ "reports": [ { "id" : 123, "name" : "My Report Name", "alias" : "my-public-path", "lastChange" : "Fri, 16 Aug 2016 14:49:02 GMT" }, { "id" : 456, "name" : "Report ABC", "alias" : "abc-report", "lastChange" : "Mon, 19 Aug 2016 18:19:20 GMT" } ] }
Overview
Content Tools