Content Types
Content Types define what a particular document should contains and stores them together in a document collection that be destributed to client applications.
{
"name": "Person",
"properties": [
{
"listView": true,
"labelView": true,
"useEnum": false,
"title": "First Name",
"required": true,
"key": "firstName",
"pattern": "",
"type": "text"
},
{
"key": "lastName",
"localized": false,
"labelView": true,
"type": "text",
"useEnum": false,
"title": "Last Name",
"listView": true,
"required": true,
"pattern": ""
},
{
"key": "profileImg",
"localized": false,
"pattern": "",
"listView": false,
"labelView": false,
"useEnum": false,
"title": "Profile Picture",
"type": "file",
"required": false
},
{
"title": "Job TItle",
"localized": true,
"key": "jobTitle",
"labelView": false,
"pattern": "",
"useEnum": false,
"listView": true,
"required": false,
"type": "text"
},
{
"listView": false,
"required": false,
"type": "html",
"useEnum": false,
"localized": false,
"labelView": false,
"pattern": "",
"key": "bio",
"title": "Bio"
},
{
"itemTitle": "hobby",
"useEnum": false,
"key": "hobbies",
"labelView": false,
"listView": false,
"type": "array",
"localized": false,
"items": {
"useEnum": false,
"type": "text",
"pattern": ""
},
"required": false,
"title": "Hobbies"
},
{
"required": false,
"localized": false,
"key": "favoriteNum",
"listView": false,
"labelView": false,
"type": "number",
"title": "Favorite No",
"useEnum": false
}
],
"id": "person"
}