定制 inuar/reference-data-api-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

inuar/reference-data-api-bundle

Composer 安装命令:

composer require inuar/reference-data-api-bundle

包简介

Akeneo PIM bundle to expose reference data via API

关键字:

README 文档

README

A Symfony bundle for Akeneo PIM that exposes reference data entities via a REST API.

Requirements

  • PHP >= 8.1
  • Symfony ^5.4
  • Doctrine DBAL ^2.13.4
  • Akeneo PIM with CustomEntityBundle installed

Installation

Install via Composer:

composer require inuar/reference-data-api-bundle

Register the bundle in your Akeneo application's config/bundles.php:

return [
    // ...
    Inuar\Bundle\ReferenceDataApiBundle\InuarReferenceDataApiBundle::class => ['all' => true],
];

Import the bundle routes in your config/routes.yaml:

inuar_reference_data_api:
    resource: "@InuarReferenceDataApiBundle/Resources/config/routing.yml"

API Endpoints

All endpoints are read-only and return JSON.

List all records for a reference data entity

GET /rest/v1/reference-data/{entityName}

Returns an array of all records for the given entity, each normalised to the standard format.

Example:

GET /rest/v1/reference-data/color
[
    { "code": "red", "labels": { "en_US": "Red" } },
    { "code": "blue", "labels": { "en_US": "Blue" } }
]

Get a single record by code

GET /rest/v1/reference-data/{entityName}/{code}

Returns a single record matching the given code. Responds with 404 Not Found if the entity type or the specific record does not exist.

Example:

GET /rest/v1/reference-data/color/red
{ "code": "red", "labels": { "en_US": "Red" } }

How It Works

The bundle resolves {entityName} against Akeneo's CustomEntityBundle configuration registry to find the corresponding entity class, then queries the database via Doctrine and serialises results using Akeneo's pim_serializer with the standard normalisation format.

License

This bundle is developed by Inuar Technology and released under the MIT license.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固