Hi,
From my point of view the chance to get this information using the REST API isn't that great. I propose to get the information using OSLC. In OSLC do you get a Resource Shape for each Artifact Creation Factory.
To get an overview on how this could work the Firefox REST Client can help you quite good.
<!-- Quality Management services catalog -->
This should give you a list of all project areas defined in RQM. Find your qm project inside the list and query for the service provider catalog related to your project. In RQM this has usually the format:
Using this URL you get the service provider document which contains the creation factory urls for each RQM artifact. Below do you find an exammple for he Test Case creation factory.
<oslc:creationFactory>
<oslc:CreationFactory><dcterms:title>Default creation factory for TestCase</dcterms:title> <oslc:creation rdf:resource="https://your.server/qm/oslc_qm/contexts/_ngtRACF5EeaPoKjHlJu0-A/resources/com.ibm.rqm.planning.VersionedTestCase"/> <oslc:resourceShape rdf:resource="https://your.serve/qm/oslc_qm/contexts/_ngtRACF5EeaPoKjHlJu0-A/shape/creation/com.ibm.rqm.planning.VersionedTestCase"/> <oslc:resourceType rdf:resource="http://open-services.net/ns/qm#TestCase"/> </oslc:CreationFactory> |
</oslc:creationFactory> |
<oslc:creationFactory>
The creation factory itself contains a url to the so-called resource shape which is a kind of blueprint for the artifact. The link to the resource shape contains among other things also the allowed values for the enumerations in RQM.
<oslc:Property>
<oslc:range rdf:resource="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/Priority"/>
<oslc:representation rdf:resource="http://open-services.net/ns/core#Reference"/>
<oslc:occurs rdf:resource="http://open-services.net/ns/core#Zero-or-one"/>
<oslc:allowedValue><rqm_process:Priority rdf:about="https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/process-info/_ngtRACF5EeaPoKjHlJu0-A/priority/literal.priority.130"><owl:sameAs rdf:resource="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/Priority/literal.priority.130"/> <dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">High</dcterms:title> <dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string">literal.priority.130</dcterms:identifier> </rqm_process:Priority> |
</oslc:allowedValue> |
<oslc:valueShape rdf:resource="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/Priority"/>
<dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Has Priority</dcterms:title><oslc:allowedValue><rqm_process:Priority rdf:about="https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/process-info/_ngtRACF5EeaPoKjHlJu0-A/priority/literal.priority.110"><owl:sameAs rdf:resource="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/Priority/literal.priority.110"/> <dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Low</dcterms:title> <dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string">literal.priority.110</dcterms:identifier> </rqm_process:Priority> |
</oslc:allowedValue> |
<oslc:readOnly rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</oslc:readOnly>
<oslc:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">hasPriority</oslc:name>
<dcterms:description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">The priority of the resource.</dcterms:description>
<oslc:isMemberProperty rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</oslc:isMemberProperty>
<oslc:hidden rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</oslc:hidden><oslc:allowedValue>
If you need more information on that I propose to switch to
Stephane Leroy's Blog with much more information on that.
If you're looking for a good development framework I propose to use Eclipse Lyo, which supports quite well in getting all that stuff.
Comments
ajay hirapara
Jul 13 '17, 3:10 a.m.Donald Nong
Jul 17 '17, 3:13 a.m.