Class AbstractConfigurationServiceEndpoint<T>

    • Constructor Detail

      • AbstractConfigurationServiceEndpoint

        public AbstractConfigurationServiceEndpoint()
    • Method Detail

      • getConfigurations

        @GET
        @Path("/")
        @Produces("application/json")
        @Consumes("application/json")
        public List<T> getConfigurations()
        Retrieves all the configurations.
        Returns:
        all the configurations.
      • saveConfiguration

        @POST
        @Path("/")
        @Produces("application/json")
        @Consumes("application/json")
        public abstract T saveConfiguration​(T configuration)
      • getConfiguration

        @GET
        @Path("/{configId}")
        @Produces("application/json")
        @Consumes("application/json")
        public T getConfiguration​(@PathParam("configId")
                                  String configId)
        Retrieves a configuration by id.
        Parameters:
        configId - config id
        Returns:
        the configuration that matches the given id.
      • deleteConfiguration

        @DELETE
        @Path("/{configId}")
        @Produces("application/json")
        @Consumes("application/json")
        public abstract void deleteConfiguration​(@PathParam("configId")
                                                 String configId)
        Delete a configuration by id.
        Parameters:
        configId - config id