List SCM repositories
GET/scm/provider/:providerType/:providerId/spaces/:spaceId/repos
Lists Source Code Management repositories.
Request
Path Parameters
Type of an existing SCM provider
Available providers and supported actions can be obtained through the /scm/providers
endpoint.
Instance ID of an existing SCM provider
Available providers and supported actions can be obtained through the /scm/providers
endpoint.
ID of an existing SCM spaces where repository will be hosted.
Available repositories can be obtained through the /scm/{providerType}/{providerId}/spaces
endpoint.
Query Parameters
Context for creation of the new application component.
The parameter affects occupied field in the response.
Header Parameters
CodeNOW API Key
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
List of SCM repositories
- application/vnd.codenow.v1+json
- Schema
- Example (from schema)
Schema
Array [
]
ID of the repository
ID of the space where the repository is hosted.
Name of the repository.
Defines if the repository is occupied or it would hosted new application component.
HTTP URL of the repository.
[
{
"id": "string",
"spaceId": "string",
"name": "string",
"occupied": true,
"httpUrl": "string"
}
]
The request was unacceptable, often due to missing a required parameter.
No valid API key provided.
The API key doesn't have permissions to perform the request.
Resource not found.
Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.
Something went wrong on CodeNOW's end.