RAM REST APi getting all asset's version
Hello,
I need to get all the versions for a given asset using the REST API (OSLC). Is this possible? In Java I can simply do the following but I haven't found a way to do it via REST String[] allVersions = asset.getVersions();
Thanks in advance for your help.
|
Accepted answer
Hi,
I guess you may would like to use oslc query, using guid as oslc:where parameter's value. It could fulfill the same goal with RAMAsset.getVersions(); Here is an example: {server context}/ram/oslc/simpleQuery?oslc.where=oslc_asset:guid="9047976A-619E-886D-3DA9-ADB9FF081FC4"this query could returns all asset whose guid is 9047976A-619E-886D-3DA9-ADB9FF081FC4 with different versions. EclipseTalk . selected this answer as the correct answer
Comments
EclipseTalk .
commented May 21 '14, 8:48 a.m.
Thanks Lu
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.