Retrieve modules through project ID and stream
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
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
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>
Yes, that's true in my case. I have artifacts with format "Module" in the response.