How to fetch all project area, components in ETM using OSLC API?
Is there a way in ETM to fetch all the projects and components using OSLC API? |
One answer
This question has been answered as part of https://jazz.net/forum/questions/272350.
Here are the specific OSLC APIs to fetch the details:
ProjectAreas:
OSLC Catalog contains details of the project areas in ETM.
Components and Configurations:
Use the OSLC Configuration catalog to review the query capabilities.
Fetching the OSLC Configuration catalog, we have the following query capabilities for Components and Configurations:
<rdf:Description rdf:nodeID="A19">
<oslc:resourceType rdf:resource="http://open-services.net/ns/config#Component"/>
<oslc:queryBase rdf:resource="https://hostname/qm/oslc_config/resources/com.ibm.team.vvc.Component"/>
<oslc:resourceShape rdf:resource="https://hostname/qm/oslc_config/resourceShapes/com.ibm.team.vvc.Component"/>
<dcterms:title rdf:parseType="Literal">Default query capability for Component</dcterms:title>
<rdf:type rdf:resource="http://open-services.net/ns/core#QueryCapability"/>
</rdf:Description>
<rdf:Description rdf:nodeID="A20">
<oslc:resourceType rdf:resource="http://open-services.net/ns/config#Configuration"/>
<oslc:queryBase rdf:resource="https://hostname/qm/oslc_config/resources/com.ibm.team.vvc.Configuration"/>
<oslc:resourceShape rdf:resource="https://hostname/qm/oslc_config/resourceShapes/com.ibm.team.vvc.Configuration"/>
<dcterms:title rdf:parseType="Literal">Default query capability for Configuration</dcterms:title>
<rdf:type rdf:resource="http://open-services.net/ns/core#QueryCapability"/>
</rdf:Description>
A GET on the querybase URL will provide the components / configurations available in ETM.
Note:
For any OSLC GET requests the following headers should be used
Accept: application/rdf+xml
OSLC-Core-Version: 2.0
|
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.