cURL
curl --request POST \ --url https://zeropath.com/api/v1/repositories/resolve-by-url \ --header 'Content-Type: application/json' \ --header 'X-ZeroPath-API-Token-Id: <api-key>' \ --header 'X-ZeroPath-API-Token-Secret: <api-key>' \ --data '{ "organizationId": "<string>", "repositoryUrl": "<string>", "vcs": "github" }'
{ "repositoryId": "<string>", "vcsObjectId": "<string>", "externalId": "<string>", "vcs": "github", "repositoryUrl": "<string>" }
Given a repository URL and VCS, returns the matching repository and provider object IDs
github
gitlab
bitbucket
generic
Repository resolved