Get all category values and types from the project area in QM with REST API
i am trying to get all the category types and values from the project area but with the get request i am able to get only few,
1. https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/project_UUID/category
2. https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/project_UUID/categoryTypes
with the above two links i am able to get values bur, while i was checking i am able to get only few, and few others are missing. it's present/visible in the web GUI but i am unable to get with the REST request.
ex.
like my categoryType if i have 5 types then those 5 types having total 50 values then i am getting only 20, 30 rest of values are missing/ not getting through GET request.
Please suggest, how can i get all the values from the project are ?
One answer
With OSLC, the standard way to get information like this is through an OSLC resource shape. With an enumerated property, the shape should include the URIs of the allowed values of the property, and you can GET each URI to fetch details of each enumeration value such as its
rdfs:label
. The URI of the resource shape can be discovered using any of the following:
-
oslc:instanceShape
of an artifact -
oslc:resourceShape
on a creation factory for that type of artifact -
oslc:resourceShape
on a query capability for that type of artifact followed byoslc:valueShape
of the membership property of the query results container resource shape.
Comments
hey David, thank you for the response first of all,
I am using python and rest API, so can this be possible to do. and can i have any reference link so i can go through to learn. i am kind of new to this kind of stuff with rest and oslc.
The main landing page for all OSLC specifications is https://open-services.net/specifications/. More specific links: