How to get the list of enumerate values of a attribute in QM using api?
Hi Team,
I will creating Test results using POST Rest API with the result(Passed,failed). So, I am trying to find the list of values present in the column(example: State).
Once I find it, I have to use it appropriately.
So, Could you help me on how to list the values in a column using rest api?
One answer
I would suggest you make yourself familiar with the APIs available, because they work different and allow different things. You can find a list of APIS by product here: https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding
For ETM, there are at least two APIs that are REST based and allow POST operations.
1. The OSLC QM API
2. The Reportable REST API (that actually only for ETM allows POST and PUT)
Both are different and work different. It is important to also mention which API one talks about in forum questions.
Comments
If a property is an enumeration, I would hope the OSLC instance resource shape referenced by the resource would declare an OSLC property with oslc:allowedValues. That would tell you the set of enumeration values for that property. Commonly, enumeration values are represented as URIs - see https://jazz.net/wiki/bin/view/LinkedData/BestPractices
Thank you, Ralph and David for the info, I'll check it out.