Skip to main content
GET
/
api
/
v1
/
git
/
commits
/
{sha}
/
diff
Get commit diff
curl --request GET \
  --url http://localhost:3000/api/v1/git/commits/{sha}/diff \
  --cookie nut-session=
{
  "success": true,
  "data": {
    "diff": "<string>"
  }
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Path Parameters

sha
string
required

Commit SHA

Response

Commit diff

success
boolean
required
data
object