Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

386 lines
8.3 KiB

{
Items: [
{
Id: Guid_1,
Name: pages,
Properties: {
Label: Pages,
ValidateOnPublish: false
},
IsPublished: true,
Version: 7,
Scripts: {
Create:
var data = ctx.data;
if (data.title && data.title.iv) {
data.slug = { iv: slugify(data.title.iv) };
replace(data);
},
Update:
var data = ctx.data;
if (data.title && data.title.iv) {
data.slug = { iv: slugify(data.title.iv) };
replace(data);
}
},
Fields: [
{
FieldId: 1,
Name: title,
IsHidden: false,
IsLocked: false,
IsDisabled: false,
Partitioning: invariant,
Properties: {
MaxLength: 100,
IsUnique: false,
IsEmbeddable: false,
InlineEditable: false,
CreateEnum: false,
Label: Title,
Hints: The title of the page.,
IsRequired: true,
IsRequiredOnPublish: false,
IsHalfWidth: false
},
Links: {
delete: {
Method: DELETE
},
disable: {
Method: PUT
},
hide: {
Method: PUT
},
lock: {
Method: PUT
},
update: {
Method: PUT
}
}
},
{
FieldId: 2,
Name: text,
IsHidden: false,
IsLocked: false,
IsDisabled: false,
Partitioning: invariant,
Properties: {
IsUnique: false,
IsEmbeddable: false,
InlineEditable: false,
CreateEnum: false,
Editor: RichText,
Label: Text,
Hints: The text of the page.,
IsRequired: true,
IsRequiredOnPublish: false,
IsHalfWidth: false
},
Links: {
delete: {
Method: DELETE
},
disable: {
Method: PUT
},
hide: {
Method: PUT
},
lock: {
Method: PUT
},
update: {
Method: PUT
}
}
},
{
FieldId: 3,
Name: slug,
IsHidden: false,
IsLocked: false,
IsDisabled: true,
Partitioning: invariant,
Properties: {
IsUnique: false,
IsEmbeddable: false,
InlineEditable: false,
CreateEnum: false,
Label: Slug (Autogenerated),
Hints: Autogenerated slug that can be used to identity the page.,
IsRequired: false,
IsRequiredOnPublish: false,
IsHalfWidth: false
},
Links: {
delete: {
Method: DELETE
},
enable: {
Method: PUT
},
hide: {
Method: PUT
},
lock: {
Method: PUT
},
update: {
Method: PUT
}
}
}
],
Links: {
contents: {
Method: GET
},
contents/create: {
Method: POST
},
contents/create/publish: {
Method: POST
},
delete: {
Method: DELETE
},
fields/add: {
Method: POST
},
fields/order: {
Method: PUT
},
fields/ui: {
Method: PUT
},
self: {
Method: GET
},
unpublish: {
Method: PUT
},
update: {
Method: PUT
},
update/category: {
Method: PUT
},
update/rules: {
Method: PUT
},
update/scripts: {
Method: PUT
},
update/sync: {
Method: PUT
},
update/urls: {
Method: PUT
}
}
},
{
Id: Guid_2,
Name: posts,
Properties: {
Label: Posts,
ValidateOnPublish: false
},
IsPublished: true,
Version: 7,
Scripts: {
Create:
var data = ctx.data;
if (data.title && data.title.iv) {
data.slug = { iv: slugify(data.title.iv) };
replace(data);
},
Update:
var data = ctx.data;
if (data.title && data.title.iv) {
data.slug = { iv: slugify(data.title.iv) };
replace(data);
}
},
Fields: [
{
FieldId: 1,
Name: title,
IsHidden: false,
IsLocked: false,
IsDisabled: false,
Partitioning: invariant,
Properties: {
MaxLength: 100,
IsUnique: false,
IsEmbeddable: false,
InlineEditable: false,
CreateEnum: false,
Label: Title,
Hints: The title of the post.,
IsRequired: true,
IsRequiredOnPublish: false,
IsHalfWidth: false
},
Links: {
delete: {
Method: DELETE
},
disable: {
Method: PUT
},
hide: {
Method: PUT
},
lock: {
Method: PUT
},
update: {
Method: PUT
}
}
},
{
FieldId: 2,
Name: text,
IsHidden: false,
IsLocked: false,
IsDisabled: false,
Partitioning: invariant,
Properties: {
IsUnique: false,
IsEmbeddable: false,
InlineEditable: false,
CreateEnum: false,
Editor: RichText,
Label: Text,
Hints: The text of the post.,
IsRequired: true,
IsRequiredOnPublish: false,
IsHalfWidth: false
},
Links: {
delete: {
Method: DELETE
},
disable: {
Method: PUT
},
hide: {
Method: PUT
},
lock: {
Method: PUT
},
update: {
Method: PUT
}
}
},
{
FieldId: 3,
Name: slug,
IsHidden: false,
IsLocked: false,
IsDisabled: true,
Partitioning: invariant,
Properties: {
IsUnique: false,
IsEmbeddable: false,
InlineEditable: false,
CreateEnum: false,
Label: Slug (Autogenerated),
Hints: Autogenerated slug that can be used to identity the post.,
IsRequired: false,
IsRequiredOnPublish: false,
IsHalfWidth: false
},
Links: {
delete: {
Method: DELETE
},
enable: {
Method: PUT
},
hide: {
Method: PUT
},
lock: {
Method: PUT
},
update: {
Method: PUT
}
}
}
],
Links: {
contents: {
Method: GET
},
contents/create: {
Method: POST
},
contents/create/publish: {
Method: POST
},
delete: {
Method: DELETE
},
fields/add: {
Method: POST
},
fields/order: {
Method: PUT
},
fields/ui: {
Method: PUT
},
self: {
Method: GET
},
unpublish: {
Method: PUT
},
update: {
Method: PUT
},
update/category: {
Method: PUT
},
update/rules: {
Method: PUT
},
update/scripts: {
Method: PUT
},
update/sync: {
Method: PUT
},
update/urls: {
Method: PUT
}
}
}
],
Links: {
create: {
Method: POST
},
self: {
Method: GET
}
}
}