formatz/contao-headless-cms-bundle
最新稳定版本:1.1
Composer 安装命令:
composer require formatz/contao-headless-cms-bundle
包简介
Contao Headless CMS Bundle
README 文档
README
Requirements
You'll need an up-and-running Contao 4.9.x installation.
Installation
Install composer if you haven't already, enter this command in the main directory of your Contao installation:
composer require formatz/contao-headless-cms-bundle
Contao Content API is now installed and ready to use.
Usage
Once installed, the following routes are available:
/api/page?url=/about/team.html OR /api/page?id=5
Gets the page, including all articles and contents at the url or id.
Example | Example with newslist | Example with newsreader
/api/module?id=5
Gets the content of a module by id
/api/content?id=5
Gets the content of a content element by id
All routes also take the additional lang parameter (e.g. ?lang=de). If you
need to override the language.
Contribution
Bug reports and pull requests are very welcome :)
© Format-Z 2023
统计信息
- 总下载量: 61
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2023-06-28