It's all about the answers!

Ask a question

[Solved] REST call to get source control stream contents


Bill Shoulder (112) | asked Jun 13 '18, 11:36 a.m.
edited Jun 13 '18, 11:58 a.m.

I'm trying to get a list of components and revisions via the REST API. Basically, the component information displayed in the web interface using Source Control -> BrowseStreams -> Stream:


https:/<server>/ccm/web/projects/<project>#action=com.ibm.team.scm.browseStream&id=<id>

I've tried various (many, many) permutations on:

https://<server>/ccm/rpt/repository/scm?workspaceItemId=<id>&fields=scm/component/*"

But am not getting any revision information (as displayed in the web interface). Do I need to subsequently request this information per-component (if so, any pointers would be very welcome).

This is my first encounter with RTC, so please forgive me if I am overlooking the obvious!

Solved, snagged the query from my browser's network activity:
"https://<server>/ccm/service/com.ibm.team.scm.common.internal.rest.IScmRestService2/workspace?workspaceItemId=<id>"
Leaving this here in case it helps anyone else.

One answer



permanent link
Jordan Elizaga (112) | answered May 10 '19, 3:39 p.m.
edited May 10 '19, 3:39 p.m.

(Not the original poster) Intercepting my network activity to see how https://<servername>/ccm/web/ resolved helped a lot.

To see more internal http services, see 
 https://<servername>/ccm/service

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.