goomento/module-page-builder-api
最新稳定版本:1.0.2
Composer 安装命令:
composer require goomento/module-page-builder-api
包简介
Rest API and GraphQL for Goomento - Magento Page Builder Extension.
关键字:
README 文档
README
1. Install
Run the following command in Magento 2 root folder to install this repository
composer require goomento/module-page-builder-api php bin/magento module:enable Goomento_PageBuilderApi php bin/magento setup:upgrade php bin/magento setup:static-content:deploy
2. REST API request
Get JSON data of particular Goomento page builder base on identifier via REST API
Request:
GET <domain>/rest/V1/<store_code>/pagebuilder/identifier/<identifier>
Example response:
{
"settings": {},
"elements": [],
"title": "Goomento page builder response",
"type": "page",
"status": "publish",
"update_time": "2022-09-02 08:50:59",
"creation_time": "2022-09-02 08:50:59",
"html": "<div>Page Builder HTML.</div>",
"styles": [
{
"href": "https://example.com/pub/style.css",
"content": "body {background: red};"
}
]
}
3. GraphQL request
Get JSON data of particular Goomento page builder base on identifier via GraphQL
Request:
query { pagebuilder(identifier: "<identifier>") { title status type html elements_content settings_content creation_time update_time styles { content href } } }
Example response:
{
"data": {
"pagebuilder": {
"title": "Goomento page builder response",
"status": "publish",
"type": "page",
"html": "<div>Page Builder HTML.</div>",
"elements_content": "[]",
"settings_content": "{}",
"creation_time": "2022-09-02 08:50:59",
"update_time": "2022-09-02 08:50:59",
"styles": [
{
"href": "https://example.com/pub/style.css",
"content": "body {background: red};"
}
]
}
}
}
Note:
Publishstatus must beYesEnableconfig must beYeselements_contentandsettings_contentwere encoded JSON data of page builder
统计信息
- 总下载量: 10.77k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2022-11-27