How to modify Artifact Categories and Custom Attributes of RQM project area using OSLC OR REST API
The RQM REST API does not support OSLC API to perform CRUD operation. (https://jazz.net/wiki/bin/view/Main/RqmApi#Resources_and_their_Supported_Op).
Is there any other way that we can perform CRUD operation on project area properties in RQM like Artifact Categories?
|
Accepted answer
Not quite sure why you said RQM REST API does not support CRUD operations. It's clearly shown in the table that you quoted that such operations are supported. Respectively, you would use POST, GET, PUT and DELETE operations. Or do I miss something?
ast java selected this answer as the correct answer
Comments
ast java
commented Apr 05 '16, 6:44 a.m.
Yes. You are correct but we can perform CRUD Operations with respect to a Test Plan, Tesct Case, etc,. what i am asking is there any API which gets the overall categories of a project area.
ast java
commented Apr 05 '16, 10:06 a.m.
i am able to get all categories of a project area using Rest API url -GET Method
Donald Nong
commented Apr 06 '16, 12:46 a.m.
Of course you can. You do it in a way similar to what you would for Test Plan, Test Case and etc.
ast java
commented Apr 07 '16, 9:23 a.m.
I tried updating category value using PUT method. I have changed the category value in updated xml (Response which i got using above mentioned url was updated with new category title) and pasted in request body and tried to update (PUT) i am getting 400 error.
Donald Nong
commented Apr 08 '16, 1:52 a.m.
Without the details, it's very hard to tell what went wrong with your testing. Can you please elaborate?
ast java
commented Apr 11 '16, 1:14 a.m.
Yes Donald, Sure i will explain in detail
ast java
commented Apr 11 '16, 1:14 a.m.
I used GET method to fetch all categories and now i tried to update one category naming Testing Category to Testing Category Modified so i changed the title value as <title type="text">Testing Category Modified</title> and pasted in request body then i performed PUT Method to update. when i send request i got 400 error.
Donald Nong
commented Apr 11 '16, 3:09 a.m.
Which URL did you use for the PUT operation? You should do a GET and then a PUT against the below URL.
ast java
commented Apr 11 '16, 8:12 a.m.
Yes i tried PUT against the above URL but still 400 Bad request error.
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:660) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:256) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:251) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:118) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1061)
ast java
commented Apr 11 '16, 8:24 a.m.
I am sorry Donald my input xml was wrong so that i could not update the value.
showing 5 of 10
show 5 more comments
|
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.