fond-of-oryx / customer-product-list-api
The CusomerProductListAPI module provides a REST API for customer product list relation CRUD.
2.0.0
2023-01-24 12:59 UTC
Requires
- php: >=8.0
- fond-of-oryx/customer-product-list-connector: ^1.0.0 || ^2.0.0
- spryker/api: ^0.3
- spryker/api-query-builder: ^0.1
Requires (Dev)
- fond-of-codeception/spryker: ^1.0
- spryker/code-sniffer: ^0.12
README
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]", } }'