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

Can't get git commit details using RTC REST API

I am trying to get git commit details as described here https://jazz.net/wiki/bin/view/Main/RTCGitApiForRetrievingCommitDetails, but not having success. 

When I use the RTC REST API to get the details of a workitem with a link to git commits the result includes something like:
"rtc_cm:com.ibm.team.git.workitem.linktype.gitCommit.gitcommit":[
{"oslc_cm:label":"The label",
"rdf:resource":"https:\/\/myjazzserver.ibm.com:9443\/jazz\/com.ibm.team.git.internal.resources.IGitResourceRestService\/commit?value=LongString300plusChars"}
]
I then try to get the details of the  commit by doing a GET of this 
but I get nothing back. What is the correct syntax/url to get the git commit details from RTC? 
Thanks.
 

0 votes



One answer

Permanent link

Maybe I'm a bit late to the party, but here is what I've been able to figure out; the long string is a json > gzip > base64... to get it back you need to decode the base64 and decompress it... Guess I'm going the same path you did, but letting any other wondering soul find a solution to this.

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
× 10,938

Question asked: Aug 06 '20, 2:21 p.m.

Question was seen: 1,663 times

Last updated: Jan 30 '23, 4:47 p.m.

Confirmation Cancel Confirm