cURL
curl -s -X POST http://127.0.0.1:4100/api/projects/demo-coffee/baselines \
-H 'content-type: application/json' -H 'x-alibi-api-key: junnu-key-demo' \
-d '{"label":"seed"}'import requests
url = "http://127.0.0.1:4100/api/projects/{id}/baselines"
payload = {
"label": "<string>",
"schemaFingerprint": "<string>",
"storageRefs": {},
"snapshot": {}
}
headers = {
"x-alibi-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-alibi-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: '<string>',
schemaFingerprint: '<string>',
storageRefs: {},
snapshot: {}
})
};
fetch('http://127.0.0.1:4100/api/projects/{id}/baselines', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"projectId": "<string>",
"version": 123,
"label": "<string>",
"schemaFingerprint": "<string>",
"storageRefs": {
"sql": "<string>",
"redis": "<string>",
"object": "<string>"
},
"checksums": {},
"env": "<string>",
"rebasedFromId": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}Baselines
Capture baseline
Captures a new versioned baseline (optional inline snapshot and storageRefs).
POST
/
projects
/
{id}
/
baselines
cURL
curl -s -X POST http://127.0.0.1:4100/api/projects/demo-coffee/baselines \
-H 'content-type: application/json' -H 'x-alibi-api-key: junnu-key-demo' \
-d '{"label":"seed"}'import requests
url = "http://127.0.0.1:4100/api/projects/{id}/baselines"
payload = {
"label": "<string>",
"schemaFingerprint": "<string>",
"storageRefs": {},
"snapshot": {}
}
headers = {
"x-alibi-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-alibi-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: '<string>',
schemaFingerprint: '<string>',
storageRefs: {},
snapshot: {}
})
};
fetch('http://127.0.0.1:4100/api/projects/{id}/baselines', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"projectId": "<string>",
"version": 123,
"label": "<string>",
"schemaFingerprint": "<string>",
"storageRefs": {
"sql": "<string>",
"redis": "<string>",
"object": "<string>"
},
"checksums": {},
"env": "<string>",
"rebasedFromId": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}Authorizations
ApiKeyAuthBearerAuth