How to limit fields returned in RPE RM query?
I was looking at this page and it says there is a way to limit the fields using an xpath query:
https://jazz.net/wiki/bin/view/Main/RRCReportableRestAPI#Query_parameters
However, the statement in the description column says:
Allows the ?fields= argument, but does not alter the content that the REST API returns.
If this doesn't limit the returned fields what is the point of having this query option? I am trying to send a request that only returns the artifact type, I don't care about the rest of the data. Currently the returned data is so much that it is causing my report to slow considerably.
One answer
For DNG, we cannot limit the fields by appending ?fields=argument. As you can notice, the result would be same for the following requests:
https://server:port/rm/publish/resources?resourceURI=UUID
https://server:port/rm/publish/resources?resourceURI=UUID&fields=dataSource/artifact/(format)
https://server:port/rm/publish/resources?resourceURI=UUID
https://server:port/rm/publish/resources?resourceURI=UUID&fields=dataSource/artifact/(format)