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!
|
Accepted answer
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
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. |
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:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:oslc_config="http://open-services.net/ns/config#"
<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
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.