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.
|
One answer
![]()
Ian Barnard (2.0k●6●13)
| answered Dec 03 '21, 3:54 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Dec 03 '21, 3:57 a.m. 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:
A little more detail is in my answer here https://jazz.net/forum/questions/278116/get-module-structure-uri-via-rest-api/278122
HTH
Ian
|
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.