Basics: model, layers, endpoints
What a CDMS model is, on which level its data lives, which layers a request passes through, and which endpoints a model gets.
Topics in this subject area
- 1.Model levels: system, tenant, user
Every model belongs to one of three levels. The level decides which database holds the data and whether a person only sees their own rows.
- 2.One model, four shapes
At runtime a model exists as an entity (database), a DTO (response), a payload (input) and metadata (description). This page explains when each shape is in play and how data is mapped between them.
- 3.System fields that the server sets
CDMS sets fields such as
id,_createdOn,_userId,_MODELTYPEand_versionitself. This page explains when each field is set and which of them the client may send. - 4.The path of a request through the layers
Filter chain, REST layer, system layer, persistence, commit: what each station checks, what it decides and which error it stops with. Separately for reads and writes.
- 5.Which endpoints a model has
The fixed set of operations per model (create, read, update, delete, query, history, rollback, file) and how the endpoint list on the model switches individual operations on and off.
- 6.Singletons: exactly one object
Some models exist only once per scope, for example the settings of a user. This page explains how the paths without an ID work and what happens on a second create or when the object is missing.
- 7.Abstract models and
@typeA general concept with several concrete types, such as “customer” with private and business customers. This page explains how the hub API forwards requests to the right subtype and when the client has to send
@type. - 8.The response format:
dataandmetaEvery response has the same envelope. This page explains what is in
dataandmetafor a single object, a list, the history and errors.