It's all about the answers!

Ask a question

Updating a RQM test artifact using OSLC API


Ranjith Parameswaran (12311215) | asked Apr 29 '13, 11:31 a.m.

Hello,

I am trying to update an RQM test artifact using rest API's. I got the artifact representation through the services uri and trying to update it.

Steps followed:

1. Got the information of the test artifact using GET method, headers used

Accept : application/rdf+xml, got an Etag generated as a result of this.

2. Tried updating the artifact using PUT method, headers used

Content-Type: application/rdf+xml, If-Found: "the above generated Etag"

Filled in the body section with the following data:

<rdf:RDF>

<rdf:Description rdf:about="https://localhost:9443/qm/oslc_qm/contexts/_ZC8PoJU0EeKKRcRVphjzKQ/resources/com.ibm.rqm.planning.VersionedTestPlan/_bNZtgJVfEeKg96WaPPvxgw">

<dcterms:description rdf:datatype="http://www.w3.org/2001/XMLSchema#string"/>

dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Copy of TestPlan#11</dcterms:title>

</rdf:Description>

</rdf:RDF>

But got "415 Unsupported Media Type" as the status code in response section. Can somebody please guide me if i am missing something here?

One answer



permanent link
Paul Slauenwhite (8.4k12) | answered Apr 30 '13, 6:48 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
You need the following header:

OSLC-Core-Version = 2.0

If this header is excluded, the request defaults to OSLC QM V1, which does not support RDF (see http://open-services.net/bin/view/Main/QmRestApiV1?#Media_Types_Used).  Hence the 415.

Your answer


Register or 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.