Zesty.io Content Instances are comprised of Content Models, which are data representations to guide data entry to create content items.
Content Schema is the combination of Content Models, Content Fields, and their respective behaviors. Content Schema provides the guidelines for creating, editing, and accessing content in a Zesty.io Content Instance. Changes to Content Schema also shapes the patterns of a Content Instance's auto generated API by assigning unique identifiers.
Content Schema is most commonly created and controlled through the Zesty.io Content Manager User Interface, but it can also be created through the API
Begin building your instance structure with content models.
Content Models contain instructions (options and fields) that determine the format of the content items that can be created and stored in them. For example, let's pretend we created a content model called Person, and Person has two fields: name and date of birth. Person now serves as a model to follow when entering or editing content in the Person content model.
Content Fields are stored on a content model to determine what type of content can be stored. Content fields are created with three key attributes:
- 1.Name (A label used to guide people conducting content entry)
- 2.Reference Name (used by programmers, only alphanumeric characters and underscores)
- 3.Data Type (used to determine input options and data requirements)
Fields can control what type of data is stored, for example, text or number, They also determine what the editing interface for a user is. Fields can be one of many types.