Class GroovyActionsEndPoint
java.lang.Object
org.apache.unomi.groovy.actions.rest.GroovyActionsEndPoint
@Produces("application/json;charset=UTF-8")
@Path("/groovyActions")
public class GroovyActionsEndPoint
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deletes the rule identified by the specified identifier.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 actionvoid
setGroovyActionsService
(GroovyActionsService groovyActionsService)
-
Constructor Details
-
GroovyActionsEndPoint
public GroovyActionsEndPoint()
-
-
Method Details
-
setGroovyActionsService
-
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
Deletes the rule identified by the specified identifier.- Parameters:
actionId
- the identifier of the groovy action that we want to delete
-