FutureActivities / Magento2-ContentManagerApi

A Magento 2 module that extends the BlackBird Content Manager extension to provide REST API support.
MIT License
3 stars 0 forks source link

Future Activities Content Manager API

Extends the Blackbird Advanced Content Manager Magento 2 extension to provide REST API support.

Dependencies

This extension cannot work without:

How to use

This extension provides the following endpoints:

Get specific content by ID

GET rest/V1/acm/content/:id

Get content type

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'

Events