import requests
url = "https://platform.ankra.app/api/v1/org/applications/imports/github"
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/imports/github', 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/imports/github \
--header 'Authorization: Bearer <token>'{
"is_truncated": true,
"source": "<string>",
"account": "<string>",
"repositories": [
{
"repository": "<string>",
"description": "<string>",
"language": "<string>",
"default_branch": "<string>",
"web_url": "<string>",
"is_archived": true,
"is_fork": true,
"is_recommended": true,
"signals": [
"<string>"
],
"state": "ready",
"import_repository": "<string>",
"application_name": "<string>",
"application_id": "<string>",
"fork_url": "<string>",
"settings_url": "<string>",
"message": "<string>"
}
],
"errors": [
{
"key": "<string>",
"message": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Preview a GitHub import
Preview importing applications from GitHub repositories the connected account does not own, such as an open-source project’s public repositories. source_url is a repository (https://github.com/acme/api) or an owner (https://github.com/acme, https://github.com/orgs/acme/repositories). Each repository comes back with its state: ready (the connected account holds it, or its fork of it, and the installation reaches it), imported, fork_required (with fork_url, GitHub’s fork page), not_granted (the fork exists but the installation was given selected repositories only; settings_url), name_taken, or empty. is_recommended marks repositories that carry a container recipe or an application entry point. Nothing is changed. Requires applications.write.
import requests
url = "https://platform.ankra.app/api/v1/org/applications/imports/github"
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/imports/github', 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/imports/github \
--header 'Authorization: Bearer <token>'{
"is_truncated": true,
"source": "<string>",
"account": "<string>",
"repositories": [
{
"repository": "<string>",
"description": "<string>",
"language": "<string>",
"default_branch": "<string>",
"web_url": "<string>",
"is_archived": true,
"is_fork": true,
"is_recommended": true,
"signals": [
"<string>"
],
"state": "ready",
"import_repository": "<string>",
"application_name": "<string>",
"application_id": "<string>",
"fork_url": "<string>",
"settings_url": "<string>",
"message": "<string>"
}
],
"errors": [
{
"key": "<string>",
"message": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Query Parameters
Response
Successful Response