It's all about the answers!

Ask a question

Is there a REST API for DNG to create a local stream,component and baseline?

Vidhya Venkatesan (3117) | asked Feb 06 '18, 5:02 a.m.
edited Apr 02 '18, 6:03 p.m. by Geoffrey Clemm (30.1k33035)

Could you please help on the availability of REST API for DNG?the need is to create a local stream,component and baseline using the REST API in DNG

Thomas Kirstätter commented Feb 08 '18, 1:49 a.m.

Hint: We currently use CLM 6.0.4

Accepted answer

permanent link
Brian Steele (562) | answered Apr 03 '18, 1:25 p.m.
edited Apr 03 '18, 1:27 p.m.

Here is an example of how to create a component via OSLC:
1) GET /rm/oslc_config
2) In this document, find the oslc:ServiceProvider entry, it should be something like <server>/rm/oslc_config/components
3) GET on the URL found in step 2
4) This gives you the service provider document.  In here you need to find the oslc:CreationFactory entry.  On my server the URL is /rm/cm/component/ldpc?project=<UUID>.  You will have one of these entries for each project area.
5) POST to the appropriate URL from step 4 for the project area where you want to create a component.
Request headers:
OSLC-Core-Version: 2.0
Content-Type: application/rdf+xml

Request body:

        <dcterms:title rdf:parseType="Literal">Create Via OSLC</dcterms:title>
        <dcterms:description rdf:parseType="Literal">Test description</dcterms:description>
You can do a GET on an existing component to see an example representation.

Rosa Naranjo selected this answer as the correct answer

Vidhya Venkatesan commented Apr 09 '18, 6:27 a.m.

I was able to create the FGC component with the help of above steps.
thank you so much!!!

3 other answers

permanent link
Brian Steele (562) | answered Feb 06 '18, 4:06 p.m.

DNG supports OSLC Configuration Management for creation of streams, components, and baselines.  See https://<servername>:<port>/rm/oslc_config for details. You can also look at for the latest details of the spec.

Thomas Kirstätter commented Feb 08 '18, 1:49 a.m.

Hello Brian,
Is this true for DNG 6.0.4, or only 6.0.5?

Bas Bekker commented Feb 08 '18, 11:34 a.m.

This API was introduced in CLM 6.0.4, see this post on news and noteworthy for Jazz Foundation 6.0.4 - REST services API, and extended with CLM 6.0.5 as mentioned here.

Thomas Kirstätter commented Mar 22 '18, 2:15 a.m.

We are having difficulties creating components in DNG, is there any example code that works with 6.0.4 which we could look at to get some better understanding?

Vidhya Venkatesan commented Mar 22 '18, 8:37 a.m.

Find the details on how we created a Stream from baseline in RM
 Create Stream:
  URL :
  Request header :
  Accept: application/json
  Content-Type: application/json
  X-Jazz-CSRF-Prevent : Session ID
  Request body:
  {"name":"Test Stream","description":"test stream","configurationId":""}

But we are not able to create a stream directly without taking a baseline.
Similarly component creation also not there

Geoffrey Clemm commented Apr 02 '18, 6:05 p.m.

Requiring that there be a baseline upon which a new stream is based is what I would expect.   I will ping the development team for an example on how to create a new component.

permanent link
Sharadha Murugappan (31115) | answered Jun 13 '18, 2:18 a.m.

Similar to RM local stream creation, are there any API to create local Streams for fine grained components in RQM?

permanent link
Venkatesh Nadamuni (138) | answered Jul 31 '19, 6:16 a.m.
This was useful, I was able to create a baseline.

Can I use this procedure to archive a baseline by simply doing a HTTP Delete instead of POST on the resource, without body?

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.