SCM repository tree
GET/scm/provider/:providerType/:providerId/spaces/:spaceId/repos/:repositoryId/tree
Tree of the Source Code Management repository.
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.
ID of an existing SCM repository to which the component should be placed.
Available repositories can be obtained through the /scm/{providerType}/{providerId}/spaces/{spaceId}/repos
endpoint.
Header Parameters
CodeNOW API Key
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
The SCM repository tree
- application/vnd.codenow.v1+json
- Schema
- Example (from schema)
Schema
Name of the tree item.
Type of the tree item:
tree
- folder
blob
- file
Path to the tree item from the root of the repository.
Defines if the tree item is occupied or it would hosted new application component:
PARENT_FOLDER
- These folders are considered as occupied because
creation of the new component would cause merging one component
to structure of another one.
APP_COMPONENT
- These folders are occupied by others application components.
FREE
- These folders would hosted new application component.
Content of the folder. For files there is a empty list.
{
"name": "string",
"type": "string",
"path": "string",
"occupied": "string",
"tree": [
null
]
}
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.