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 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.
i am able to get all categories of a project area using Rest API url -GET Method
Of course you can. You do it in a way similar to what you would for Test Plan, Test Case and etc.
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.
Without the details, it's very hard to tell what went wrong with your testing. Can you please elaborate?
Yes Donald, Sure i will explain in detail
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. Which URL did you use for the PUT operation? You should do a GET and then a PUT against the below URL.
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) 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.