Reputation: 5
I need to get , with API rest call in pentaho, a list of dashboards in the public(or another) folder and if it's possible the list of datasources used in these dashboards. it's possible?
Upvotes: 0
Views: 567
Reputation: 6356
Yes, with /repo/files/{pathId}/children
you get a list of child files from the selected repository path of the repository.
In your case /repo/files/public/children
gives a xml that you further interpret to know if the <file> is a directory, a report, a dashboard or something else, based on its extension. You can also get the acl to know if a given user/role can see the dashboard or not.
Full documentation is there, and according to my previous experience, you will need some trials and errors before to find the correct syntax and filters.
So don't give up "YES it is possible!".
Upvotes: 1