Skip to main content

SCM repository tree

GET 

/scm/provider/:providerType/:providerId/spaces/:spaceId/repos/:repositoryId/tree

Tree of the Source Code Management repository.

Request

Path Parameters

    providerType stringrequired


    Type of an existing SCM provider
    Available providers and supported actions can be obtained through the /scm/providers endpoint.

    providerId stringrequired


    Instance ID of an existing SCM provider
    Available providers and supported actions can be obtained through the /scm/providers endpoint.

    spaceId stringrequired


    ID of an existing SCM spaces where repository will be hosted.
    Available repositories can be obtained through the /scm/{providerType}/{providerId}/spaces endpoint.

    repositoryId stringrequired


    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

    X-Codenow-Api-Key anyrequired

    CodeNOW API Key

Responses

The SCM repository tree

Schema

    name stringrequired


    Name of the tree item.

    type stringrequired


    Type of the tree item:
    tree - folder
    blob - file

    path stringrequired


    Path to the tree item from the root of the repository.

    occupied stringrequired


    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.

    tree undefined[]required


    Content of the folder. For files there is a empty list.

Loading...