Operations#
There are two types of operations : RouteOperation and
GroupsOperation.
RouteOperation#
For basic operations, a RouteOperation defines which
RouteController method will be used for a specific route. The basic
groups are those that you know well, the CRUD ones.
For custom actions (TODO Link doc), any string can be used to make your own specific
route scope.
Example#
GroupsOperation#
These are used to define the route scopes where a property might be exposed.
Each GroupsOperation match one from RouteOperation,
except delete since there is no property exposed in a DELETE route response.
Shortcuts#
There are two shortcuts available for @Groups decorator : "all" and "basic".
alllitteraly means no matter which operations, the property decorated will be exposed.basicmeans every basicCRUD_OPERATIONS:[create, list, details, update]
Both shortcuts can be used both on a scoped entity or globally registered for a property.