[Solved] REST call to get source control stream contents
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
(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