DNG REST API How To Get Review Data
I want to get data for DNG Reviews for custom reports that are not available and I see no way to do in the Report Builder. There is a Reviews Widget that has something close, but I cannot see a way to see how that works to customize it or create something similar. So, I need the raw data.
https://server:port/rm/publish/reviews
|
Returns the review resources that are on the server. You can use this namespace with the resourceURI filters only.
|
Accepted answer
I am by no means an expert, but it seems to be possible to get started with that API. Here my suggestions after spending some time looking at the documentation you refer to above.
https://server:port/rm/publish/reviews Returns the review resources that are on the server. You can use this namespace with the resourceURI filters only.
Comments
Hi Ralph,
As I already mentioned, the documentation points out that you CANNOT QUERY DIRECTLY FOR THE REVIEWS. YOU HAVE TO QUERY FOR RESOURCES AND FILTER BY THE REVIEW URI.
Hi Ralph,
My interpretation of the reportable REST API for DNG is that you can not Just query all reviews.
You would have to query all items in the project area and then filter for items that have a review and then get the details. That is my interpretation of the API.
I tried, but was not able to get the data I wanted in the time I had allotted.
Is OSLC a better approach to getting Review data?
Brad,
I don't know if that data is exposed in OSLC. This is out of what I have tried. Maybe Ian knows. You would have to try and OSLC GET an item that has this data and look if there is a link or something in the item.
I think reportable REST should give you the information, but I don't have experience with the DNG flavor. I know EWM better.
I'd suggest to create an enhancement request.
One other answer
Hi Brad
- https://jazz.ibm.com:9443/rm/reviews/B6eXcbGVEeyNVcwbWfztXA
Or you can shorten the URI to just the UUID of the review, which doesn't require any URL encoding, i.e.:
- https://jazz.ibm.com:9443/rm/publish/reviews/?resourceURI=https%3A%2F%2Fjazz.ibm.com%3A9443%2Frm%2Freviews%2F_B6eXcbGVEeyNVcwbWfztXA
- https://jazz.ibm.com:9443/rm/publish/reviews/?resourceURI=_B6eXcbGVEeyNVcwbWfztXA
Comments
FYI the reviews dashboard widget uses a private (and unsupported) API.
Hi Ian,