fond-of-oryx/customer-product-list-api

The CusomerProductListAPI module provides a REST API for customer product list relation CRUD.

3.0.0 2023-02-03 09:04 UTC

This package is auto-updated.

Last update: 2024-10-27 12:57:04 UTC


README

license

The CustomerProductListApi module provides a REST API for customer product list create/updates.

Installation

composer require fond-of-oryx/customer-product-list-api

Register Plugins in ApiDependencyProvider

    /**
     * @return \Spryker\Zed\Api\Dependency\Plugin\ApiResourcePluginInterface[]
     */
    protected function getApiResourcePluginCollection(): array
    {
        return [
            ...
            new CustomerProductListApiResourcePlugin(),
        ];
    }

POST /api/rest/customer-product-lists
Example
curl -X POST "http://zed.yourdomain.com/api/rest/customer-product-lists/" \
     -H 'Content-Type: application/json' \
     -d $'{
          "data": {
            "fk_customer": "1",
            "product_list_ids": "[1]",
          }
     }'