Skip to content

A Magento 2 module that extends the BlackBird Content Manager extension to provide REST API support.

License

Notifications You must be signed in to change notification settings

FutureActivities/Magento2-ContentManagerApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • acm_content_by_type
  • acm_content_by_id

About

A Magento 2 module that extends the BlackBird Content Manager extension to provide REST API support.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages