Extends the Blackbird Advanced Content Manager Magento 2 extension to provide REST API support.
This extension cannot work without:
This extension provides the following endpoints:
GET rest/V1/acm/content/:id
GET rest/V1/acm/content-type/:identifier
This will return the following object:
{
title: "",
collection: []
}
Where collection is an array of Content objects similar to:
{
title: "",
custom_attributes: [
{
"attribute_code": "handle"
"value": ""
},
{
"attribute_code": "handle2"
"value": ""
}
]
}
You can also pass in a filters array similar to the following to further filter the attribute type content collection:
filters[0][attribute_code] = 'title';
filters[0][value] = 'My Title'
And you can sort the results by any field with:
sortBy = 'entity_id'
sortByDirection = 'ASC'
acm_content_by_type
acm_content_by_id