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

How to retrieve all attributes for a DNG component using REST/OSLC?

I am trying to retrieve a list of all attributes (custom) defined in a DNG component.
I tried using the Reportable REST API with the following endpoint:


but this gives all the attributes in the entire project area, i want it only for a particular component.

0 votes


Accepted answer

Permanent link
You can try this:
https://<server>/rm/types?resourceContext=https://<server>/rm/rm-projects/<ProjectItemID>&componentURI=https://<server>/rm/rm-projects/<ProjectItem ID>/components/<ComponentItemID>&oslc_config.context=<LinkToConfiguration>&accept=*&private=true
Kishor Kumar Rai K selected this answer as the correct answer

1 vote

Comments

Thank you Subramanya, it worked 

FYI that's a private and hence unsupported API (there's a hint in private=true) which may change in the future. Caveat Emptor. See my answer below about 7.1 providing an API for types




One other answer

Permanent link

7.1 now provides an API for types - see the link at bottom of this page https://jazz.net/wiki/bin/view/Main/DNGServerAPI

0 votes

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
× 11,054

Question asked: Sep 09, 2:34 a.m.

Question was seen: 341 times

Last updated: Sep 09, 9:21 a.m.

Confirmation Cancel Confirm