Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.62 KB

README.md

File metadata and controls

52 lines (31 loc) · 1.62 KB

Mage2 Module CopeX StoreCodeRestApi

`copex/module-storecoderestapi`

Main Functionalities

Add store_id filter to rest api when given via url

Installation

* = in production please use the --keep-generated option

Type 1: Zip file

  • Unzip the zip file in app/code/CopeX
  • Enable the module by running php bin/magento module:enable CopeX_StoreCodeRestApi
  • Apply database updates by running php bin/magento setup:upgrade*
  • Flush the cache by running php bin/magento cache:flush

Type 2: Composer

  • Make the module available in a composer repository for example:
    • private repository repo.magento.com
    • public repository packagist.org
    • public github repository as vcs
  • Add the composer repository to the configuration by running composer config repositories.repo.magento.com composer https://repo.magento.com/
  • Install the module composer by running composer require copex/module-storecoderestapi
  • enable the module by running php bin/magento module:enable CopeX_StoreCodeRestApi
  • apply database updates by running php bin/magento setup:upgrade*
  • Flush the cache by running php bin/magento cache:flush

Configuration

Specifications

  • Plugin
    • beforeGetList - Magento\Sales\Api\OrderRepositoryInterface > CopeX\StoreCodeRestApi\Plugin\Webapi\Magento\Sales\Api\OrderRepositoryInterface

Attributes