Class BambooPlanConfigImportResource


  • @Singleton
    public class BambooPlanConfigImportResource
    extends Object
    • Method Detail

      • importPlan

        public javax.ws.rs.core.Response importPlan​(@NotNull
                                                    @NotNull String yamlString,
                                                    @Context
                                                    javax.ws.rs.core.HttpHeaders headers,
                                                    @Context
                                                    javax.ws.rs.core.UriInfo uriInfo)
                                             throws WebValidationException
        Import configuration of a top level plan in YAML format.

        A minimal valid input consists of plan name, plan key and project reference:

        
           ---
           key: PLAN
           name: My Plan
           project:
             key: PROJ
           ...
         
        Throws:
        WebValidationException
      • validatePlan

        public javax.ws.rs.core.Response validatePlan​(long repositoryId,
                                                      @NotNull
                                                      @NotNull String yamlString)
                                               throws WebValidationException
        Validate the Yaml Specs represented as a pure string. This endpoint does not persist any data and does not introduce any changes to the system.
        Throws:
        WebValidationException
      • importPlanPermission

        public javax.ws.rs.core.Response importPlanPermission​(@NotNull
                                                              @NotNull String yaml,
                                                              @Context
                                                              javax.ws.rs.core.HttpHeaders headers)
                                                       throws WebValidationException
        Import configuration of plan permission in YAML format.
        Throws:
        WebValidationException