Parsed working-tree status
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/git/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.13-215-85-171.sslip.io/v1/machines/{id}/git/status \
--header 'Authorization: Bearer <token>'{
"detached": true,
"clean": true,
"changed": [
{
"path": "<string>",
"status": "<string>",
"staged": true,
"unstaged": true,
"original_path": "<string>"
}
],
"branch": "<string>",
"ahead": 123,
"behind": 123
}Git
Parsed working-tree status
GET
/
v1
/
machines
/
{id}
/
git
/
status
Parsed working-tree status
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/git/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.13-215-85-171.sslip.io/v1/machines/{id}/git/status \
--header 'Authorization: Bearer <token>'{
"detached": true,
"clean": true,
"changed": [
{
"path": "<string>",
"status": "<string>",
"staged": true,
"unstaged": true,
"original_path": "<string>"
}
],
"branch": "<string>",
"ahead": 123,
"behind": 123
}Authorizations
API key passed as Bearer token
Path Parameters
Machine ID (e.g. mch_a1b2c3d4)
Query Parameters
Absolute path of the repository working tree.