It's all about the answers!

Ask a question

Can't get git commit details using RTC REST API


Emmet Clifford (11) | asked Aug 06 '20, 2:21 p.m.

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.
 

Be the first one to answer this question!


Register or to post your answer.