REST can be applied to many circumstances, but as with most things, certain common patterns emerge over time. The following list of patterns helps promote design uniformity across projects and establishes a common terminology.
|
Pattern
|
Description
|
Behavior
|
The behavior pattern applies to resources that carry out
operations. These resources have generally no state of their own and
only support the POST operation. |
Container
|
The container pattern builds on the entity pattern by providing the
means to dynamically add and/or update nested resources. |
Entity
|
The entity pattern applies to resources that can be read with a GET
operation, but can only be changed by PUT and DELETE operations. |
TODO:
- Transaction
- Container vs. Store (latter allows entries to be created & updated with PUT)