curl --request POST \
--url https://zeropath.com/api/v1/installations/repositories \
--header 'Content-Type: application/json' \
--header 'X-ZeroPath-API-Token-Id: <api-key>' \
--header 'X-ZeroPath-API-Token-Secret: <api-key>' \
--data '{
"organizationId": "<string>",
"appId": "<string>"
}'
[
{
"id": "<string>",
"repositoryUrl": "<string>",
"repositoryName": "<string>",
"defaultBranch": "<string>",
"github": {
"githubAppInstallationId": "<string>",
"externalGithubRepositoryId": "<string>",
"externalGithubAppInstallationId": "<string>"
},
"gitlab": {
"gitlabInstallationId": "<string>",
"externalGitlabProjectId": "<string>"
},
"bitbucket": {
"bitbucketInstallationId": "<string>",
"externalBitbucketRepositoryId": "<string>"
}
}
]
curl --request POST \
--url https://zeropath.com/api/v1/installations/repositories \
--header 'Content-Type: application/json' \
--header 'X-ZeroPath-API-Token-Id: <api-key>' \
--header 'X-ZeroPath-API-Token-Secret: <api-key>' \
--data '{
"organizationId": "<string>",
"appId": "<string>"
}'
[
{
"id": "<string>",
"repositoryUrl": "<string>",
"repositoryName": "<string>",
"defaultBranch": "<string>",
"github": {
"githubAppInstallationId": "<string>",
"externalGithubRepositoryId": "<string>",
"externalGithubAppInstallationId": "<string>"
},
"gitlab": {
"gitlabInstallationId": "<string>",
"externalGitlabProjectId": "<string>"
},
"bitbucket": {
"bitbucketInstallationId": "<string>",
"externalBitbucketRepositoryId": "<string>"
}
}
]