It's all about the answers!

Ask a question

API to create baseline in RDNG


Dmitry A. Lesin (24826996) | asked Mar 04 '19, 1:43 p.m.

Hello!

I can not find in Rational DOORS Next Generation (v6.0.5 or higher) services any factories to create baselines through OSLC API. I'm talking about Requirements Management Configuration Management (not about Global Configuration Management capabilities). Could somebody give an advice? Is it really not possible or I'm wrong?
Thank you!

Accepted answer


permanent link
Bas Bekker (1.4k4) | answered Mar 04 '19, 5:56 p.m.
JAZZ DEVELOPER
edited Mar 04 '19, 5:59 p.m.
I admit that I could not find clear documentation on the local configuration mgmt OSLC API. I see some references in this forum post: Is there a REST API for DNG to create local stream,component and baseline?

And not sure if the same OSLC local configuration management API is documented under the GC documentation on your running server at:
https://<your host:port>/gc/doc/scenarios

and here the OSLC spec
Dmitry A. Lesin selected this answer as the correct answer

2 other answers



permanent link
Tom Poulin (662) | answered Mar 04 '19, 6:13 p.m.

See https://tools.oasis-open.org/version-control/browse/wsvn/oslc-core/trunk/specs/config/config-resources.html#baselinecreation. Basically, you do a GET of the stream, then use its properties as a template for the desired baseline (e.g., modify the title), and POST this back to the oslc_config:baselines container for that stream.


permanent link
Antje Rößle-Tuchel (59415) | answered Mar 18, 8:48 a.m.

 This http-request works fine by me:


Content-type: application/rdf+xml
Accept: application/rdf+xml
OSLC-Core-Version: 2.0
Configuration-Context: https://example/rm/cm/stream/_uthUMNkaEe2T6KW9b8u7AA

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
    xmlns:oslc_config="http://open-services.net/ns/config#"
    xmlns:dcterms="http://purl.org/dc/terms/">
<oslc_config:Baseline rdf:about="https://example/rm/cm/baseline/something">
    <oslc_config:stream rdf:resource="https://example/rm/cm/stream/_uthUMNkaEe2T6KW9b8u7AA"/>
    <oslc_config:component rdf:resource="https://example/rm/cm/component/_utOZQNkaEe2T6KW9b8u7AA"/>
    <dcterms:title rdf:parseType="Literal">New Baseline via http-request</dcterms:title>
</oslc_config:Baseline>
</rdf:RDF>

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.