It's all about the answers!

Ask a question

Get list of modules and their URI


Oded Mozesh (52412) | asked Aug 15, 6:29 a.m.

 Hi,


When I use  https://servername:9443/rm/publish/modules/*?projectURI= to get the project modules,

I get the modules and their content.

Is it possible to get only the artifacts of type 'Module'?

How can I get the location of the module (the folder name + path)?


One answer



permanent link
Ralph Schoon (55.3k23642) | answered Aug 15, 6:57 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 As far as I can tell https://jazz.net/wiki/bin/view/Main/RRCReportableRestAPI#Supported_artifact_formats allows to specify the artifact typeName or type URI as a parameter. For modues 'modules' seems to be the typeName.


https://server:port/rm/publish/[artifact_format]?typeName=name1&projectURI=id2 


Comments
Oded Mozesh commented Aug 15, 7:02 a.m.

 Thanks Ralph.


The issue is that I get all the descendant artifacts as well (i.e. the module content)

Since we have hundreds of modules I might get huge result.

I need only the modules themselves...




Is it possible to get the folder the module located in? 

Your answer


Register or to post your answer.