Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

API to create baseline in RDNG

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!

0 votes


Accepted answer

Permanent link
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

1 vote


2 other answers

Permanent link

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.

0 votes


Permanent link

 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>

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 84
× 60

Question asked: Mar 04 '19, 1:43 p.m.

Question was seen: 3,298 times

Last updated: Mar 18 '24, 8:48 a.m.

Confirmation Cancel Confirm