Get Sections
How to obtain project sections of a block.
GET https://mburger.cloud/api/blocks/<id>/sections
curl https://mburger.cloud/api/blocks/<id>/sections?include=elements&sort=-id&filter[value]=%home,news|paper&skip=0&take=2
-H "Accept: application/json"
-H "X-MBurger-Token: <token>"
-H "X-MBurger-Version: 3"
URL Parameters
Parameters
Includes
Sort
Filters
When successful, a HTTP 200 and JSON like this is returned:
{
"status_code": 0,
"body": {
"meta": {
"from": 0,
"to": 2,
"total": 10
},
"items": [
{
"id": 1,
"order": 1,
"all_locales": false,
"visible": true,
"in_evidence": false,
"available_at": 1546599965,
"updated_at": 1546599966,
"elements": {
"title": {
"id": 2,
"name": "title",
"type": "text",
"order": 1,
"options": null,
"locale": "en",
"value": "Main Home"
},
"image": {
"id": 3,
"name": "image",
"type": "image",
"order": 2,
"options": null,
"locale": "en",
"value": [
{
"id": 1,
"url": "https://cdn.mburger.cloud/storage/1/conversions/image-medium.jpg",
"size": 45166,
"mime_type": "image/jpeg"
}
]
},
"content": {
"id": 4,
"name": "content",
"type": "textarea",
"order": 3,
"options": null,
"locale": "en",
"value": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec nisi et sapien tincidunt sodales."
}
}
}
]
}
}
Last updated