GET primary text from DNG REST API
https://abc.com/rm/publish/resources?resourceURI=MD_YzZ5QSZ7Eeyh65u8ejIiXQ
&oslc_config.context=https://abc.com/rm/cm/stream/_-fgqYEIgEeyQrKzsOcxBdA
This does not show the primary Text of the Requirement.
What is the query & header to GET the Primary Text attribute of DNG.
Accepted answer
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
Configuration-Context: https://abc.com/rm/cm/stream/_-fgqYEIgEeyQrKzsOcxBdA
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>