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

Listing DNG types using OSLC in context of component and stream

 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!

2 votes


Accepted answer

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

0 votes

Comments

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 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
× 10,938
× 139
× 24

Question asked: Feb 06 '19, 5:54 a.m.

Question was seen: 2,692 times

Last updated: Feb 06 '19, 6:17 a.m.

Confirmation Cancel Confirm