Create page with having a component using REST api
#1 by devulapally1224 on Nov 29, 2017 8:44:45 AM

i have a page with name as generalInfo, which has a field title. this uses in a component with name general information which has fields like name, address and age.

how do i create this page which uses a component.

=========================
Her is my code
=========================
curl https://cmsdev.callhealth.com/magnoliaAuthor/.rest/nodes/v1/website \
-H "Content-Type: application/json" \
-X PUT -i \
--user superuser:superuser \
--data \
'{
"name": "ceo-generalInfo",
"type": "mgnl:page",
"path": "/ceo-generalInfo",
"properties": [
{
"name": "title",
"type": "String",
"multiple": false,
"values": [
"General Infomation"
]
},
{
"name": "name",
"type": "String",
"multiple": false,
"values": [
"Kiran"
]
},
{
"name": "address",
"type": "String",
"multiple": false,
"values": [
"abc"
]
},
{
"name": "mgnl:template",
"type": "String",
"multiple": false,
"values": [
"generalInformation:pages/generalInformation"
]
}
]
}'