This trait can be used in API controllers to provide an easy way of implementing idempotent actions.