Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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

0 votes



2 answers

Permanent link
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.

2 votes

Comments

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


Permanent link
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.

0 votes

Comments

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

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,023
× 480
× 136
× 40
× 18
× 3

Question asked: Feb 25 '14, 8:19 a.m.

Question was seen: 7,364 times

Last updated: Feb 26 '14, 9:32 a.m.

Confirmation Cancel Confirm