It's all about the answers!

Ask a question

Read all artifacts in a Project area using RM Client extension API.


Vaibhav S (10621) | asked Jan 10, 3:47 a.m.

 Hello,


 I need to Read  all artifacts in a Project area using RM Client extension API.

I checked the APIs in https://jazz.net/wiki/bin/view/Main/RMExtensionsAPI702 article and other previous versions as well but couldn't find any such method.

Please let me know if its possible.

Thanks
Vaibhav

One answer



permanent link
Bartosz Chrabski (3.2k12141) | answered Jan 10, 3:54 a.m.
Vaibhav,

RM Client extension API does not give you possibility to get all the artifacts in the probject but You can use OSLC or Reportable API.


Example:

https://dngserver.public.name:port/rm/publish/resources?projectURI=_ABC

Comments
Vaibhav S commented Jan 10, 4:33 a.m.

Hello Bartoz,


Thanks for the response.

Can you please help me with how to use these APIs in my .js file through which I am implementing my DNG extension.

thanks
vaibhav 


Chandan M B commented Jan 10, 5:16 a.m.

Hi Vaibhav,


Could you please precise about reading all artifacts mean ?
In a GC Enabled project
  You have to know the component first
  Then you have to read the module
  From the module you can read all the artifacts 
 


Vaibhav S commented Jan 10, 8:33 a.m.

Hi Chandan, 


The PA is not GC enabled.

Any API to read the Artifacts in PA ? 


Bartosz Chrabski commented Jan 10, 8:43 a.m.

As I wrote, use Reportable API or OSLC. If You will adapt the provided URL to your server reality then you will be able to list artefacts. Be aware that there can be many pages of results.

Your answer


Register or to post your answer.