diglin / custom-entity-api-endpoint-bundle
为Akeneo的Custom Entity Bundle添加API端点
1.0.1
2019-12-16 17:15 UTC
Requires
This package is auto-updated.
Last update: 2024-09-17 03:44:04 UTC
README
为CustomEntityBundle的API添加入口点。Akeneo Labs.
安装
您可以使用composer安装此bundle
php composer.phar require diglin/custom-entity-api-endpoint-bundle:1.*
在app/config/routing.yml
的末尾添加以下内容
diglin_api_ref_data: resource: "@DiglinApiRefDataBundle/Resources/config/routing.yml" prefix: /api
并在app/AppKernel.php
文件中的registerProjectBundles()
方法中启用此bundle
$bundles = [ // ... new \Diglin\Bundle\ApiRefDataBundle\DiglinApiRefDataBundle(), ]
用法
可用的API端点
api_ref_data_reference_data_list GET /api/rest/v1/reference-data/{referenceName}
api_ref_data_reference_data_get GET /api/rest/v1/reference-data/{referenceName}/{code}
许可
Do What The Fuck You Want To Public License (WTFPL)
作者
- Sylvain Rayé
- http://www.diglin.com/
- @diglin_
- 在github上关注我!