It's all about the answers!

Ask a question

Retrieve modules through project ID and stream


TGS Thales (1514) | asked Apr 04 '17, 12:56 p.m.

Hello,

We try to retrieve all resources of a project with a provided stream, through the "DNGReportableRestAPI" through this example of request : https://doorsng.url:port/rm/publish/resources?projectURI=_xxx&vvc.configuration=https://doorsng.url:port/rm/cm/stream/_yyy

And it seems that we don't get modules.

But if we call the same request without the stream (https://doorsng.url:port/rm/publish/resources?projectURI=_xxx),

it seems that we get also modules.

Is anyone can explain how to get also modules through the projectId and the stream ID ?

 

Thanks in advance.

One answer



permanent link
Donald Nong (14.5k414) | answered Apr 17 '17, 3:54 a.m.

I don't have such problem in my DNG 6.0.3 iFix003 environment. The first element in the output of a similar URL is a module. The output of URLs with and without the vvc.configuration parameter (which points to the default local configuration) is the same. If you have multiple local configurations, you need to be careful which configuration you are using.


Comments
TGS Thales commented May 12 '17, 10:02 a.m.

Do you mean that if you put this following url in your browser :
https://dngserver.public.name:port/rm/publish/resources?projectURI=_ABC&vvc.configuration=https://dngserver.public.name:port/rm/cm/stream/_XYZ

You will have in your xml result file, a declared artifact ?:
<ds:artifact attribute:itemId="MB_dfds786d">;
   <rrm:title attribute:itemId="_fdsfds">Module 1</rrm:title>
</ds:artifact>
Because for my case, I can retrieve the Module 1, through the tag "moduleContext" from an artifact.
For example :
<ds:artifact attribute:itemId="MB_dfds786d">;
   <rrm:title attribute:itemId="_fdsfds">Artefact 1</rrm:title>
   <ds:moduleContext>
     <rrm:moduleDisplayName>Module 1 < /rrm:moduleDisplayName >
   </ds:moduleContext>
</ds:artifact>


Donald Nong commented May 14 '17, 10:17 p.m.

Yes, that's true in my case. I have artifacts with format "Module" in the response.

Your answer


Register or to post 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.