RestOperations¶
-
public @interface
RestOperations¶ The
RestOperationsannotation is used to specify which CRUD operations should be enabled for entity. RestOperations value is an array of one or more values specified inRestOperationenum, that is: CREATE, READ, UPDATE, DELETE. There is also one special value - ALL. When provided, all CRUD operations are enabled for entity, regardless of presence of other values.This annotation is processed by
org.motechproject.mds.annotations.internal.RestOperationsProcessorand can be applied only to class which is also annotated withorg.motechproject.mds.annotations.Entity. It has no effect otherwise.See also:
RestOperation,org.motechproject.mds.annotations.internal.RestOperationsProcessor