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
Requires
- php: >=8.0
- fond-of-oryx/customer-product-list-connector: ^1.0.0 || ^2.0.0
- spryker/api: ^0.4.0
- spryker/api-extension: ^0.1.0
- spryker/api-query-builder: ^0.1.0
Requires (Dev)
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]", } }'