Class LoadConfigResource

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.apache.juneau.rest.server.servlet.RestServlet
org.apache.juneau.server.config.rest.LoadConfigResource
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class LoadConfigResource extends RestServlet
REST resource for loading configuration from a Git repository.

Fetches configuration files for a given project and branch, combining application defaults with project-specific overrides.

See Also:
  • Constructor Details

  • Method Details

    • gets

      public String gets(@Path("project") String project, @Path("branch") String branch) throws Exception
      Returns configuration for the specified project and branch as JSON.
      Parameters:
      project - Project name.
      branch - Branch name.
      Returns:
      JSON-serialized configuration map.
      Throws:
      Exception - If configuration cannot be loaded.