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

CusomerProductListAPI 模块提供用于客户产品列表关系的 CRUD REST API。

3.0.0 2023-02-03 09:04 UTC

This package is auto-updated.

Last update: 2024-08-27 12:41:53 UTC


README

license

CustomerProductListApi 模块提供用于客户产品列表创建/更新的 REST API。

安装

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

ApiDependencyProvider 中注册插件

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

POST /api/rest/customer-product-lists
示例
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]",
          }
     }'