It's all about the answers!

Ask a question

Listing DNG types using OSLC in context of component and stream


Bartosz Chrabski (3.4k12749) | asked Feb 06 '19, 5:54 a.m.

 Hi Jazz Community,


I am aware that I can get list of artifact types, link types using DNG private api for particular project using


Is there a way to get list of artifact types and links in context of component and stream when CM is enabled.

Without any issue I can get list of artifacts but I need list of artifact types.

Thanks!

Accepted answer


permanent link
Benjamin Röhl (1671324) | answered Feb 06 '19, 6:10 a.m.
Hi Bartosz,

in general retrieving artefacts/resources configuration-aware, you just need to add the Configuration-Context header with the configuration's URL to your request when fetching the type model:
Configuration-Context : https://.../rm/cm/stream/_I5GKcDzrEeWJpodFEUUUBg
    

Alternatively, but the less prefered way, is to add a query parameter to the resource URL itself
http://myserver/rm/types?resourceContext=<my_project_URL>&oslc_config.context=https://.../rm/cm/stream/_I5GKcDzrEeWJpodFEUUUBg
    

Please see the Configuration Management Specification for more details.
Bartosz Chrabski selected this answer as the correct answer

Comments
Bartosz Chrabski commented Feb 06 '19, 6:17 a.m.

Thanks, I will checked the first option, because the second one was not working well when working with 6.0.4 

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.