It's all about the answers!

Ask a question

How to use rest API https://server:port/rdm/publish/resources?collectionURI=rrc123


Pascal Jean (6012640) | asked Feb 25 '14, 8:19 a.m.
Hello,
We are using a RRC version 2.0.0.1.
I would like to get the list of requirements collections per collections.
I already have the list of collection under that format:
https://<server>/rdm/resources/rrc32406
https://<server>/rdm/resources/rrc32393

I think this rest API found in the help should be ok but I can't make it working:
https://server:port/rdm/publish/resources?collectionURI=rrc123

What is exactly rrc123?
Is it rrc32406 as shown in the information above or is an internal ID?.
If internal ID, how to get them. 
I undersatnd that https://<server>/rdm/publish/collections
is only avaliable starting 2.0.0.02

Thank you in adavnce

2 answers



permanent link
Håkan Kristiansson (5114) | answered Feb 25 '14, 10:01 a.m.
https://<server>/rdm/resources/rrc32406 in your example is the same as "rrc123" in the manual
https://server:port/rdm/publish/resources?collectionURI=rrc32406 will work, in 2.0.0.2

I just tried https://server:port/rdm/publish/resources?collectionURI=rrc37

which I got from, by clicking on a collection:

https://server:port/rdm/web/rrc#action=com.ibm.rdm.web.pages.showArtifact&artifactURI=https%3A%2F%2Fhkrcv2%3A9443%2Frdm%2Fresources%2Frrc37

and in my 2.0.0.2 installation where it gave me an output.

So what's mentioned in the manual is correct, it's not implemented until 2.0.0.2

From the manual:

https://server:port/rdm/publish/collections (Available only in RRC V2.0.0.2 and higher.) Provides information about the specified collections. This data source is in the same format as the resources data source.

Comments
Pascal Jean commented Feb 26 '14, 2:53 a.m.

Thank you Hakan.
I'll try today and see what is displayed now and if it will fit my needs.
Regards


permanent link
Jorge Flores (1092) | answered Feb 25 '14, 5:49 p.m.
Hi Pascal Jean

"rrc123" is a bad example of how the URI looks, normally the URI looks like _VrmRgZ5uEeOpYdLNRcTtDQ.

As
Håkan Kristiansson

When you open a collection the URI is the last part of the URL shown in the browser.

Comments
Pascal Jean commented Feb 26 '14, 2:52 a.m.

Thank you Jorge.
I'll check that. and see what is displayed now.
Regards


Edgar Ignacio Velazquez Mar commented Feb 26 '14, 9:32 a.m.
JAZZ DEVELOPER

Actually for version 2.x the correct identifier to be used on the Rest API is rrcXXX which is the number of the artifact in the server, for version 3.x and later the URI to be used is a UUID in the form displayed above

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.