Endpoint:
http://[site-address]/api/site_pages?key_identity=your-identity&key_credential=your-credential
One can build a complete site using the API, eg. starting first at
http://[...]/api/sites
{ | |
"o:slug": "example-page-1234", | |
"@type": "o:SitePage", | |
"o:site": { | |
"@id": "http://omekas:8888/api/sites/2", | |
"o:id": 2 | |
}, | |
"o:title": "Example page 1234", | |
"o:block": [ | |
{ | |
"o:layout": "pageTitle", | |
"o:data": [ | |
], | |
"o:attachment": [ | |
] | |
}, | |
{ | |
"o:layout": "html", | |
"o:data": { | |
"html": "<p>This is an example</p>\r\n" | |
}, | |
"o:attachment": [ | |
] | |
}, | |
{ | |
"o:layout": "browsePreview", | |
"o:data": { | |
"query": "item_set_id[]=1035", | |
"heading": "Some items", | |
"link-text": "Browse our stuff" | |
}, | |
"o:attachment": [ | |
] | |
} | |
] | |
} |