It's all about the answers!

Ask a question

how to access restapi using c# application ?

khaja moizuddin (112) | asked Oct 28 '17, 7:33 a.m.

  <style> &lt;!-- / Font Definitions / @font-face {font-family:&quot;Cambria Math&quot;; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:&quot;Segoe UI&quot;; panose-1:2 11 5 2 4 2 4 2 2 3;} / Style Definitions / p.MsoNormal, li.MsoNormal, div.MsoNormal {margin-top:0in; margin-right:0in; margin-bottom:8.0pt; margin-left:0in; line-height:107%; font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif;} .MsoChpDefault {font-family:&quot;Calibri&quot;,sans-serif;} .MsoPapDefault {margin-bottom:8.0pt; line-height:107%;} / Page Definitions / @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --&gt; </style>


I created a trial version account in created a project and respective requirements using Jazz account UI .

Later tried to find the Rest api's to access the information. But i didn't find them.

Later Installed CLM in application server and created projects and requirements .Also found the REST API to access the information.API's working in browser and POSTMan but not in sample application.


can any one provide information regarding this.....


Thanks in advance.


One answer

permanent link
Bas Bekker (1.4k4) | answered Oct 31 '17, 12:28 p.m.
edited Oct 31 '17, 12:31 p.m.

The REST API you probably are looking for is the OSLC API, which is formally specified and supported. Below I added a link to a workshop document and resources for that API, and that should get you going, as it explains things like authentication (browser and Postman requests work as you are already authenticated through your browser) and how to navigate the data available in the application.
Note that Java is used in that workshop, but you should be able to translate that fairly easily to C#.

For completeness, the DNG public API's that are available are:

  • OSLC RM V2 API - the open standard way to programmatically integrate with DOORS Next Generation, there is an elaborate workshop to get you started here OSLC Workshop article. These programs can be from any language that support HTTP REST calls, e.g. Java, C# etc. Hence these are more flexible to run and can read and update DNG data, as part of a web server, or standalone, but have some limitations set by the current OSLC standard, for example module support.
  • TRS 2.0 - the OSLC Tracked Resource Set open standard REST API to hook into the stream of low level changes done to resources in the DNG application (and other Jazz apps as well); read only.
  • and additionally, there is the so called client extension capability, these are Javascript extension that generally added as widgets you can run from the dashboard, and can be used to view and edit DNG data. It's more tailored to DNG, so has better module support, but is limited to run in a browser/javascript environment.
And there is the private REST API, which you could reverse engineer looking at the requests/responses, but it isn't documented and supported, and can change over time, so usage at your own risk.

Your answer

Register or to post your answer.