fond-of-oryx / company-product-list-api
The CompanyProductListAPI module provides a REST API for company product list relation CRUD.
3.0.0
2023-02-01 10:40 UTC
Requires
- php: >=8.0
- fond-of-oryx/company-product-list-connector: ^1.1.0 || ^2.0.0
- spryker/api: ^0.4.0
- spryker/api-extension: ^0.1.0
- spryker/api-query-builder: ^0.1.0
Requires (Dev)
- fond-of-codeception/spryker: ^1.0
- spryker/code-sniffer: ^0.12
README
The CompanyProductListApi module provides a REST API for company product list create/updates.
Installation
composer require fond-of-oryx/company-product-list-api
Register Plugins in ApiDependencyProvider
/**
* @return \Spryker\Zed\Api\Dependency\Plugin\ApiResourcePluginInterface[]
*/
protected function getApiResourcePluginCollection(): array
{
return [
...
new CompanyProductListApiResourcePlugin(),
];
}
POST /api/rest/company-product-lists
Example
curl -X POST "http://zed.yourdomain.com/api/rest/company-product-lists/" \ -H 'Content-Type: application/json' \ -d $'{ "data": { "fk_company": "1", "product_list_ids": "[1]", } }'