Authorization: Bearer ********************
curl --location --request GET 'https://api.servebolt.io/v1/environments//git' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
{
"data": {
"id": 106,
"type": "git",
"attributes": {
"localpath": "public",
"git_root": "public.git",
"repodef": "git@git.gitlab.com:test/repo.git",
"branch": "main",
"autopull": false,
"pre_script": null,
"post_script": null,
"repomodified": true,
"enabled": true,
"commit": "5d3404a67692e76f3fa6563163789b84245f26fb",
"commit_name": "Merge branch 'app' ...",
"step": "deploy-complete",
"last_trigger": "2024-10-26T09:21:59.000000Z",
"last_status": true,
"last_message": "Deployed: Merge branch ...",
"publickey": "ssh-rsa AAAAB3N..."
}
}
}