Resources Repository Get Commit
🤬
Get Commit
Get specified commit
Http Method
GET
End Point
/~api/repositories/{projectId}/commits/{commitHash}
Placeholder Description Example
{projectId} Project Id 1
{commitHash} Commit Hash 8cbec3d9eda2050a4ca0676767be3b6bf20251b8
Response
Operation Successful
Status Code
200
Response Body
Content Type
application/json
Example
{
"commitHash" : "string" ,
"author" : {
"name" : "string" ,
"emailAddress" : "string" ,
"when" : 1 ,
"tzOffset" : 1
}
,
"committer" : {
"name" : "string" ,
"emailAddress" : "string" ,
"when" : 1 ,
"tzOffset" : 1
}
,
"commitMessage" : "string"
}
Operation Failed
Status code
Status code other than 200 indicating the error type
Response Body
Error detail of content type "text/plain"
cURL Example
$ curl -u <login name>:<password or access token> https://crash.software/~api/repositories/1/commits/8cbec3d9eda2050a4ca0676767be3b6bf20251b8
Please wait...
Page is in error, reload to recover