It's all about the answers!

Ask a question

Get all registered snaphot pointers in RDNG project area


Dmitry A. Lesin (24826996) | asked Jan 21 '19, 3:42 p.m.
Hello!
Is it possible somehow (with any API) get list of available snapshotId values from some project area in Rational DOORS Next Generation starting from v6.5 and higher? I was trying to find the solution in REST API and OSLC API for RM but didn't get it. May be somebody could give an advice how to better do it if possible.
Now I'm working with RM configuration context, not a global configuration.
Thank you in advance!

One answer



permanent link
Dmitry A. Lesin (24826996) | answered Jan 22 '19, 4:32 a.m.

It seems, I have found the answer. It's possible with OSLC API. Going from rootservices.xml and catalogue, we come to services.xml. As a sample from some test project in my development Jazz environment:


<oslc:creationFactory>
          <oslc:CreationFactory>
...
            <oslc_config:component rdf:resource="https://win2012:9443/rm/cm/component/_z_V-IB2xEem6mY7RdKYL1w"/>
...
          </oslc:CreationFactory>
        </oslc:creationFactory>

>> getting next:

<rdf:RDF
    xmlns:dcterms="http://purl.org/dc/terms/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:oslc="http://open-services.net/ns/core#"
    xmlns:oslc_config="http://open-services.net/ns/config#"
    xmlns:acc="http://open-services.net/ns/core/acc#"
    xmlns:process="http://jazz.net/ns/process#">
  <oslc_config:Component rdf:about="https://win2012:9443/rm/cm/component/_z_V-IB2xEem6mY7RdKYL1w">
    <acc:accessContext rdf:resource="https://win2012:9443/rm/acclist#_z7JaoB2xEem6mY7RdKYL1w"/>
    <oslc:serviceProvider rdf:resource="https://win2012:9443/rm/oslc_rm/_z7JaoB2xEem6mY7RdKYL1w/services.xml"/>
    <process:projectArea rdf:resource="https://win2012:9443/rm/process/project-areas/_z7JaoB2xEem6mY7RdKYL1w"/>
    <dcterms:description rdf:parseType="Literal"></dcterms:description>
    <oslc_config:configurations rdf:resource="https://win2012:9443/rm/cm/component/_z_V-IB2xEem6mY7RdKYL1w/configurations"/>
    <dcterms:title rdf:parseType="Literal">RM Baselines Sample Project</dcterms:title>
  </oslc_config:Component>
</rdf:RDF>

>> getting main stream and all baselines created for the testing project area:

<rdf:RDF
    xmlns:dcterms="http://purl.org/dc/terms/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:oslc="http://open-services.net/ns/core#"
    xmlns:oslc_config="http://open-services.net/ns/config#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:acc="http://open-services.net/ns/core/acc#">
  <rdf:Description rdf:about="https://win2012:9443/rm/cm/component/_z_V-IB2xEem6mY7RdKYL1w/configurations">
    <rdfs:member rdf:resource="https://win2012:9443/rm/cm/baseline/_vy1E8B2yEem6mY7RdKYL1w"/>
    <rdfs:member rdf:resource="https://win2012:9443/rm/cm/baseline/_d_gNQB2yEem6mY7RdKYL1w"/>
    <rdfs:member rdf:resource="https://win2012:9443/rm/cm/baseline/_SKgVMB2yEem6mY7RdKYL1w"/>
    <rdfs:member rdf:resource="https://win2012:9443/rm/cm/stream/_z_nD5h2xEem6mY7RdKYL1w"/>

  </rdf:Description>
</rdf:RDF>

May be it can be useful for somebody!
Thanks

Your answer


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.