Class AgamaDeploymentsResource


  • @Path("/agama-deployment")
    @Produces("application/json")
    public class AgamaDeploymentsResource
    extends ConfigBaseResource
    • Field Summary

      • Fields inherited from class io.jans.configapi.core.rest.BaseResource

        MISSING_ATTRIBUTE_CODE, MISSING_ATTRIBUTE_MESSAGE, TOKEN_DELIMITER
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jakarta.ws.rs.core.Response deploy​(@NotNull String projectName, byte[] gamaBinary)  
      jakarta.ws.rs.core.Response getConfigs​(@NotNull String projectName)  
      jakarta.ws.rs.core.Response getDeployment​(@NotNull String projectName)  
      jakarta.ws.rs.core.Response getDeployments​(int start, int count)  
      jakarta.ws.rs.core.Response setConfigs​(@NotNull String projectName, Map<String,​Map<String,​Object>> flowsConfigs)  
      jakarta.ws.rs.core.Response undeploy​(@NotNull String projectName)  
      • Methods inherited from class io.jans.configapi.core.rest.BaseResource

        checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getHttpHeaders, getHttpRequest, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, getUriInfo, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError
    • Constructor Detail

      • AgamaDeploymentsResource

        public AgamaDeploymentsResource()
    • Method Detail

      • getDeployments

        @GET
        @Produces("application/json")
        @Path("list")
        public jakarta.ws.rs.core.Response getDeployments​(@QueryParam("start")
                                                          int start,
                                                          @QueryParam("count")
                                                          int count)
      • getDeployment

        @GET
        @Produces("application/json")
        @Path("/{name}")
        public jakarta.ws.rs.core.Response getDeployment​(@PathParam("name") @NotNull
                                                         @NotNull String projectName)
      • deploy

        @POST
        @Consumes("application/zip")
        @Path("/{name}")
        public jakarta.ws.rs.core.Response deploy​(@PathParam("name") @NotNull
                                                  @NotNull String projectName,
                                                  byte[] gamaBinary)
      • undeploy

        @DELETE
        @Path("/{name}")
        public jakarta.ws.rs.core.Response undeploy​(@PathParam("name") @NotNull
                                                    @NotNull String projectName)
      • getConfigs

        @GET
        @Path("/configs/{name}")
        public jakarta.ws.rs.core.Response getConfigs​(@PathParam("name") @NotNull
                                                      @NotNull String projectName)
                                               throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • setConfigs

        @PUT
        @Consumes("application/json")
        @Path("/configs/{name}")
        public jakarta.ws.rs.core.Response setConfigs​(@PathParam("name") @NotNull
                                                      @NotNull String projectName,
                                                      Map<String,​Map<String,​Object>> flowsConfigs)