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

Updating a RQM test artifact using OSLC API

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?

0 votes



One answer

Permanent link
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.

0 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,951

Question asked: Apr 29 '13, 11:31 a.m.

Question was seen: 4,992 times

Last updated: Apr 30 '13, 6:48 a.m.

Related questions
Confirmation Cancel Confirm