Getting the component details on stream level DNG
2 answers
Hi Minakshi,
If you're using global configs you may find what you need in the GCM REST API. There's also an experimental GCM Extension API that might be helpful as well. The example on that page uses OpenSocial gadgets.
Comments
Hi @Jim Ruehlin,
Thanks a lot for your answer. But i think you are not getting my actual question. I want an api which will give the component data and it's artifacts data which is under component. I hope you are getting my point.
Thanks a lot,
Thanks a lot,
Minakshi Verma
If you know the URI of the DN component, a GET with appropriate Accept header will get you the details of the component.
Discovering all the version resources owned by that component will require some form of query. I'll let someone from the DN dev team answer more definitively. But you could try an OSLC query for requirements specifying an
oslc.where
expression that includes
oslc_config:component=<componentUri>
.
See OSLC 3.0 Core: Discovery for details how to discover services etc.
See OSLC 3.0 Query for details about OSLC Query.
Best regards,
David
David
Comments
In addition to David's response, this is the best resource to find the available APIs: https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding
I have used several of the APIs for components and configurations in the application attached to https://jazz.net/library/article/92596 - see the GIT Repo. The OSLC/REST calls are implemented using Eclipse Lyo. It is a bit complex, but you should be able to debug the flow to better understand the entry points.
Comments
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 08 '21, 2:00 p.m.Minakshi Verma
Oct 11 '21, 5:03 a.m.Hi @Geoffrey,
Thanks,