snowdog / module-cms-api
Custom CMS API endpoints which retrieves CMS pages and blocks filtered
Installs: 64 992
Dependents: 0
Suggesters: 0
Security: 0
Stars: 31
Watchers: 12
Forks: 14
Open Issues: 1
Type:magento2-module
Requires
- php: 7.0.2|7.0.4|~7.0.6|~7.1.0|~7.2.0|~7.3.0|~7.4.0|~8.1.0|~8.2.0
- magento/framework: 101.0.*|102.0.*|103.0.*
- magento/module-cms: 102.0.*|103.0.*|104.0.*
README
The module provides endpoints to get CMS blocks and pages filtered.
1. Installation:
composer require snowdog/module-cms-api
bin/magento module:enable Snowdog_CmsApi
bin/magento setup:upgrade
2. Available endpoints:
/rest/V1/snowdog/cmsPage/:pageId
: retrieves page info by its id (integer value)/rest/V1/snowdog/cmsPage/search
: retrieves the list of pages (accepts search criteria filters)/rest/V1/snowdog/cmsPageIdentifier/:identifier/storeId/:storeId
: retrieves page info by its identifier (string value) and store id (integer value)/rest/V1/snowdog/cmsBlock/:blockId
: retrieves block info by its id (integer value)/rest/V1/snowdog/cmsBlockIdentifier/:identifier/storeId/:storeId
: retrieves block info by its identifier (string value) and store id (integer value)/rest/V1/snowdog/cmsBlock/search
: retrieves the list of blocks (accepts search criteria filters)