Class RepositoryResource


  • @Singleton
    public class RepositoryResource
    extends Object
    Allows to create linked repository by Bitbucket Server. More details at https://hello.atlassian.net/wiki/spaces/SDT/pages/581292754/Bamboo+REST+endpoints+for+first+slice
    • Method Detail

      • createRepository

        public javax.ws.rs.core.Response createRepository​(@NotNull
                                                          @NotNull StashCreateRepositoryRequest createRepositoryRequest,
                                                          @Context
                                                          com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
                                                          @Context
                                                          javax.servlet.http.HttpServletRequest request)
                                                   throws WebValidationException
        Create BBS linked repository. Application link id is taken from request parameters that's why this endpoint will work only for Bitbucket Server requests.
        Parameters:
        createRepositoryRequest - new repository settings.
        Returns:
        created repository details
        Throws:
        WebValidationException - when validation fails
        UnauthorisedException - when user don't have global CREATE_REPOSITORY permission