It's all about the answers!

Ask a question

How to retrieve the Changeset file list via OSLC?


DAVID GUO (3539) | asked Nov 17 '15, 6:02 a.m.
 using the url
https://test.com:9443/ccm/oslc/workitems/9315/rtc_cm:com.ibm.team.filesystem.workitems.change_set.com.ibm.team.scm.ChangeSet

can get ChangeSet ID.

But how to retrieve the Changeset file list via OSLC?

Not only is the name of the file or directory, but also need their relative path.

One answer



permanent link
Donald Nong (14.4k314) | answered Nov 17 '15, 7:59 p.m.
I don't think the SCM OSLC API has ever been officially published. So we're getting into the "internal API" territory.

To get the relative path, we will need a "workspace", which I have not figured out how RTC picks it internally. Most of the internal APIs only return contents in JSON format so you will need to set request header "Accept: text/json". When you get a resource URI, you can follow it and get more details most of the time, but without knowing how to pick a workspace, there is no way to resolve the path of the involved files.

You can use network trace (Firebug/Chrome) to find out as many details as possible, in general.

Your answer


Register or to post your answer.