Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

[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.

0 votes



One answer

Permanent link

(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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019
× 479

Question asked: Jun 13 '18, 11:36 a.m.

Question was seen: 2,965 times

Last updated: May 10 '19, 3:39 p.m.

Confirmation Cancel Confirm