Class GroovyActionsEndPoint


  • @Produces("application/json;charset=UTF-8")
    @Path("/groovyActions")
    public class GroovyActionsEndPoint
    extends Object
    • Constructor Detail

      • GroovyActionsEndPoint

        public GroovyActionsEndPoint()
    • Method Detail

      • setGroovyActionsService

        public void setGroovyActionsService​(GroovyActionsService groovyActionsService)
      • save

        @POST
        @Path("/")
        @Consumes("multipart/form-data")
        @Produces("application/json")
        public javax.ws.rs.core.Response save​(org.apache.cxf.jaxrs.ext.multipart.Attachment file)
        Save a groovy action file and create an actionType entry to allow to call this action
        Parameters:
        file - the file to save
        Returns:
        Response of the API call
      • remove

        @DELETE
        @Path("/{actionId}")
        public void remove​(@PathParam("actionId")
                           String actionId)
        Deletes the rule identified by the specified identifier.
        Parameters:
        actionId - the identifier of the groovy action that we want to delete