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

Get desired Module and add artifacts in it using OSCL + JAVA

 I am new at OSLC + JAVA framework. Currently I am trying to add some artifacts in particular module. 

So I need to fetch that module and add new artifact in it. 

As a part of POC currently I am able to add base  artifact in some folder by setting that folder path as parent.

Is there any resource available to add artifact in particular module ? 

It will be really helpful if we get some sample code.

0 votes



One answer

Permanent link

Hi


I can't help you with the Java, but in outline to add an artifact to a module you first create the core artifact if it doesn't already exist, then using the module API to GET the existing structure and add a reference to the artifact into the structure and update the structure using PUT.

The module API is documented here: https://jazz.net/wiki/bin/view/Main/DNGModuleAPI and on pages linked from there.

AFAICT the module structure API is a bit pernickety about headers on the GET/PUT and how configuration is provided:
  • Don't construct the structure URL, get it from the module definition by doing a GET on the module URL using the following settings:
  • Provide header (capitalised exactly like this)
    • DoorsRP-Request-Type: public 2.0
  • Do NOT provide header OSLC-Core-Version
  • Provide the configuration using header vvc.configuration and NOT using header Configuration-Context or query ?oslc_config.context - so it must be a local configuration URL not a global configuration

HTH
Ian

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

Question asked: Dec 03 '21, 12:48 a.m.

Question was seen: 1,236 times

Last updated: Dec 03 '21, 3:57 a.m.

Confirmation Cancel Confirm