It's all about the answers!

Ask a question

Retrieving artifact type in RRC with REST API


Luca Martinucci (1.0k397112) | asked Jan 13 '15, 5:32 a.m.
edited Jan 13 '15, 5:33 a.m.
I need to retrieve programmatically the type (e.g. "Feature", or "Use Case" ...) of an RRC artifact, using REST API.
In addition, the only information I have about the artifact is its UUID, so I need to learn how to build a REST API query that uses this UUID as a filter.
Any snippets of code that address these issues are welcome.
My RRC version is 4.0.6.

Accepted answer


permanent link
Subramanya Prasad Pilar (4.6k16) | answered Jan 13 '15, 1:38 p.m.
You can calculate the URL by appending the artifact UUID - https://server:port/rm/publish/resources?resourceURI=UUID

To retrieve the artifact type, you can use datasource/artifact/collaboration/attributes/objectType/name.
Luca Martinucci selected this answer as the correct answer

Comments
1
Donald Nong commented Jan 13 '15, 10:51 p.m.

The artifact type should be returned in the response to the URL mentioned above - look for "attribute:name" in the <attribute:objectType> tag.


Luca Martinucci commented Jan 15 '15, 4:28 a.m.

Thanks for the suggestion, I will try it.


1
Luca Martinucci commented Jan 20 '15, 6:02 a.m.

It worked, thank you very much!

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.