How to fetch Validated by attribute of an artifact in Doors Ng using IBM DOORS Next Reportable REST API
Hi,
I am currently using the DOORS Next Reportable REST API https://jazz.net/wiki/bin/view/Main/DNGReportableRestAPI below to fetch module data, but the in this module link present in the validated by attributes are only appearing. They should be displayed in all module links as well.
uri= website+"/rm/publish/resources?moduleURI="+URI
Here validation has been done before GET
For understanding, I have taken validated by attribute for one artifact and it's having 4 links inside of it.
Validated by
uri= website+"/rm/publish/resources?moduleURI="+URI
HttpUtils.sendPutForSecureDocument(server, put, login, password, httpclient, JTS_Server);
Here validation has been done before GET
ResponseParser rp = buildGetRequest(uri)
.addHeader("Accept", "application/rdf+xml")
.addHeader("DoorsRP-Request-Type", "public 2.0")
.addHeader("Configuration-Context", webSite + "/rm/cm/"+locationContext+"/" + streamID)
.getResponseParser();
For understanding, I have taken validated by attribute for one artifact and it's having 4 links inside of it.
Validated by
|
in this module links
link1
link2
in all module links
link3
link4
--------------------
|
Current Result after using GET REST API
|
validated by ->link1,link2 which is not fetching remaining link3 and link 4
Required: validated by ->link1,link2,link3,link4
Kindly assist me with resolving this issue
2 answers
Shan,
You have to change the URI from the module URI artifact to the BASE uri artifact.
So your module URI artifact may look like this:
BI_LWpYcGT2Ee28EbVmwNaQNw
BI_LWpYcGT2Ee28EbVmwNaQNw
It should look like:
TX_LXcCoGT2Ee28EbVmwNaQNw
In some versions of DNG, it may be CA_LXcCoGT ...
In any case, you're querying the module artifact and not the base artifact. Hope this helps.
TX_LXcCoGT2Ee28EbVmwNaQNw
In some versions of DNG, it may be CA_LXcCoGT ...
In any case, you're querying the module artifact and not the base artifact. Hope this helps.
Kevin Murphy
IBM Champion
Comments
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jul 25, 8:24 a.m.What do you mean by "in all module links"? Where are the links from and where exactly do they go to - a binding or a core artifact?