Read an application's generated files
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/branch-files"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/branch-files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/branch-files \
--header 'Authorization: Bearer <token>'{
"files": [
{
"path": "<string>",
"content": "<string>"
}
],
"branch": "<string>",
"success": true,
"message": "<string>"
}Applications
Read an application's generated files
The generated files (Dockerfile, chart, pipeline definition and the rest) as they stand on the application’s setup branch, with their contents.
GET
/
api
/
v1
/
org
/
applications
/
{application_id}
/
branch-files
Read an application's generated files
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/branch-files"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/branch-files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/branch-files \
--header 'Authorization: Bearer <token>'{
"files": [
{
"path": "<string>",
"content": "<string>"
}
],
"branch": "<string>",
"success": true,
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The application's id.