It's all about the answers!

Ask a question

How get link types from RDNG


Dmitry A. Lesin (23413166) | asked Aug 21 '19, 10:50 a.m.
edited Aug 21 '19, 10:54 a.m.

Hello!

I need to get information about available link types in a project area. Using next link:


I can find that next REST API request is legal:


But server response to this link is:
Error 400: Bad Request

If I try use something like next:

Then returned empty XML document:
<ds:dataSource xmlns:ds="http://jazz.net/xmlns/alm/rm/datasource/v0.1" xmlns:rm="http://www.ibm.com/xmlns/rdm/rdf/" xmlns:rrm="http://www.ibm.com/xmlns/rrm/1.0/" appId="RRC" vMajor="60" vMinor="06"/>

So the question is, how can be loaded information about available link types for a project area with either REST or OSLC API?
Thank you!





One answer



permanent link
Ivan Bravo (1762) | answered Aug 21 '19, 11:58 a.m.
JAZZ DEVELOPER
<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; min-height: 14.0px} p.p3 {margin: 0.0px 0.0px 2.0px 0.0px; font: 14.0px 'Helvetica Neue'} span.s1 {color: #dca10d} span.s2 {text-decoration: underline ; color: #dca10d} </style>

 Hi Dmitry


As mentioned in Reportable API Wiki https://jazz.net/wiki/bin/view/Main/DNGReportableRestAPI, REST API request https://serverName:Port/rm/publish/linktypes is used by ETL, that means that it will provide link types only for "opt out" (configuration management disabled) project areas.


If there is no "opt out" project areas in the server, then it is expected an empty XML document, same is expected when using parameter "projectURI" and the project area provided has configuration management enabled.


Unfortunately I don't know any other way to get project link types.




Comments
Dmitry A. Lesin commented Aug 21 '19, 12:20 p.m.

Hi Ivan,

Thank you for the information. I appreciate it so much.
You are right at all. My project area is under configuration management. and we need to create links in a change set. This is a customer's prerequisite for an extension being developed.
It seems that I found some another way how to get this data. I have found that in OSLC project area services (services.xml), in " <oslc:creationFactory>" group, there's some record like next:


This URI being GET returns a response that contains all descriptions of link types. But the problem is that there's a lot of such records there. And now the problem is how define a correct record with link types in advance. I think it's not a good way to request all similar records and try to define the correct one.
Don't you know how we can do it? I believe that it can solve the current problem, at least in a theory. 
Thank you!

Your answer


Register or to post your answer.