It's all about the answers!

Ask a question

How to limit fields returned in RPE RM query?


Stephen Valliere (231218) | asked Feb 29 '16, 11:36 a.m.
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



permanent link
Subramanya Prasad Pilar (4.6k14) | answered Feb 29 '16, 9:12 p.m.
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)

Your answer


Register or to post your answer.