Rest API Optimistic concurrency via Version #

The REST Service doesn’t appear to enforce Optimistic Concurrency. I can update without a version # but if I do provide it there is no validation. Is this by design? Is there a way for me to require version and have it be validated?

Thanks.

Hi Josh,

Unfortunately, REST API doesn’t support optimistic concurrency via version. System uses last version from database when the entity is updated. We have created issue: REST API should support optimistic locking via version field · Issue #1196 · cuba-platform/cuba · GitHub

Thank you,
Andrey

A post was split to a new topic: Problem with cuba.rest.optimisticLockingEnabled