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? |
One answer
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
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.