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 Constructor Description GroovyActionsEndPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
remove(String actionId)
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)
-
-
-
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
-
-