It's all about the answers!

Ask a question

How to get dependent enumerations using the RTC REST API?


0
1
Angélica Olvera (111) | asked Feb 05 '14, 1:13 p.m.
 Hi everybody!!


   I'm trying to get two enumerations using the RTC REST API. I get them by the following URLs:

https://10.51.81.103:9443/ccm/oslc/enumerations/_XgPscI37EeOiMINNkC5kSA/Enumeracion_ProductoNegocioTp
https://10.51.81.103:9443/ccm/oslc/enumerations/_XgPscI37EeOiMINNkC5kSA/Enumeracion_CategoriaNegocioTp

The first one depends on the second one, I mean, the shown products depend on the category chosen (it's already defined like this on RTC). But when I get the products by the previous url, I get ALL of them, I haven't found a way to filter them by category. Both xmls have the same structure for example:

<oslc_cm:Collection xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/" xmlns:dc="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/" oslc_cm:totalCount="7">
<rtc_cm:Literalrdf:resource="https://10.51.81.103:9443/ccm/oslc/enumerations/_XgPscI37EeOiMINNkC5kSA/Enumeracion_CategoriaNegocioTp/Administracion%20y%20Finanzas">
<dc:identifier>Enumeracion_CategoriaNegocioTp.literal.l8</dc:identifier>
<dc:title>Administracion y Finanzas</dc:title>
<rtc_cm:iconUrl/>
</rtc_cm:Literal>
</oslc_cm:Collection>

So my question is: Is there a way I can get the products filtered by a category using the REST API?


Thank you very much in advance!!! 

Be the first one to answer this question!


Register or to post 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.