Global Configuration : parameters for "/gc/gc.webui.findUse" REST request
With ELM 6.0.6.1, we use the following REST request to find where a RM local configuration is used in a global configuration :
https://elm702/gc/gc.webui.findUse?uri=https%3A%2F%2Felm702%2Frm%2Fcm%2Fbaseline%2F_5JlNEC0REe62aK8rs_Kr-g
But in ELM 7.0.2, this request return a 409 HTTP code with the message :
{"summary":"Missing the required web parameter \"personalStreamScope\".","type":"ERROR"}
We search a detailed documentation on GC REST API, to update our code.
Regards.
|
2 answers
Ian Barnard (2.3k●7●14)
| answered Jul 28 '23, 6:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jul 28 '23, 7:16 a.m. Looks like you're using an internal API - that's unsupported.
gc has documented API information on your https://SERVER:PORT/gc/doc/scenarios
You can get contribution information using this API https://SERVER:PORT/gc/doc/scenario?id=GetFlatListOfContributionsForGcHiearchy
Comments
Jean-François CHAPELLE
commented Jul 28 '23, 7:03 a.m.
Thank you, Ian.
But when you display the link content https://elm702/gc/doc/serviceInterface?serviceInterfaceUrl=com.ibm.team.gc.web.frontservice.search.IFindUseService
The page is ... empty ...
Ian Barnard
commented Jul 28 '23, 7:18 a.m.
| edited Jul 28 '23, 7:20 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
https://SERVER:PORT/gc/doc/scenarios is for the documentation. Don't know where "serviceInterface,..." comes from in your URL.
For that API to get contributions, as per that documentation page you'll use:
i.e. assuming /gc is the context root for GCM then https://SERVER:PORT/gc/gcsdk-api/flatListOfContributionsForGcHierarchy
(plus parameters)
David Honey
commented Jul 28 '23, 7:54 a.m.
| edited Jul 28 '23, 7:54 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
com.ibm.team.gc.web.frontservice is a package for private undocumented services that are unsupported for 3rd party use. Please do not use them.
|
David Honey (1.8k●1●7)
| answered Jul 28 '23, 7:52 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jul 28 '23, 7:52 a.m.
As Ian rightly said, the REST APIs under /gc/gc.webui are private internal APIs that are undocumented and unsupported for 3rd party use. They are subject to change without notice, and implementations calling them are likely to be fragile. Please do not use them.
GC has a rich set of public REST APIs.You can find information about public APIs at https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding. This has links to application specific APIs including GCM and the GC SDK.
|
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.