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

GET primary text from DNG REST API

https://abc.com/rm/publish/resources?resourceURI=MD_YzZ5QSZ7Eeyh65u8ejIiXQ


This does not show the primary Text of the Requirement.

What is the query & header to GET the Primary Text attribute of DNG.

0 votes


Accepted answer

Permanent link

You need to send a Get Request on the artifact resource:
In your case:

with the configuration context being in the headers:

headers:
OSLC-Core-Version: 2
Accept: application/rdf+xml

you will get a rdf formatted xml of the whole artifact
the primary text, which is formatted in html can be received from line: (in my case it only contains the letter "a")
<jazz_rm:primaryText rdf:parseType="Literal"><div xmlns="http://www.w3.org/1999/xhtml">
<p dir="ltr" id="_1657184924274">a</p>
</div></jazz_rm:primaryText>


Chidambaram L selected this answer as the correct answer

2 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

Question asked: Jul 13 '22, 2:55 a.m.

Question was seen: 545 times

Last updated: Jul 13 '22, 3:10 a.m.

Confirmation Cancel Confirm