diglin/custom-entity-api-endpoint-bundle

Add API Endpoint for the Custom Entity Bundle for Akeneo

1.0.1 2019-12-16 17:15 UTC

This package is auto-updated.

Last update: 2024-04-17 02:39:38 UTC


README

Add entry point for the API of the CustomEntityBundle of Akeneo Labs.

Installation

You can install this bundle with composer:

php composer.phar require diglin/custom-entity-api-endpoint-bundle:1.*

Add at the end of app/config/routing.yml, the following content:

diglin_api_ref_data:
    resource: "@DiglinApiRefDataBundle/Resources/config/routing.yml"
    prefix: /api

and enable the bundle in the app/AppKernel.php file in the registerProjectBundles() method:

    $bundles = [
        // ...
        new \Diglin\Bundle\ApiRefDataBundle\DiglinApiRefDataBundle(),
    ]

Usage

Available API endpoint:

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}  

License

Do What The Fuck You Want To Public License (WTFPL)

Author