It's all about the answers!

Ask a question

GET primary text from DNG REST API

Chidambaram L (2344074) | asked Jul 13 '22, 2:55 a.m.

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

permanent link
Nasuh Isiktas (461) | answered Jul 13 '22, 3:10 a.m.

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

with the configuration context being in the 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="">
<p dir="ltr" id="_1657184924274">a</p>

Chidambaram L selected this answer as the correct answer

Your answer

Register or to post your answer.