async-postgres icon indicating copy to clipboard operation
async-postgres copied to clipboard

Hardcoded Magento Api Version

Open lukeromanowicz opened this issue 6 years ago • 0 comments

There is a clean way neither to set a different API version nor no API version at all (in case you use some unversioned API endpoints. Options should not be mutated on client creation.

https://github.com/DivanteLtd/magento2-rest-client/blob/30a67752e65a8d02eac3c7caa1ace51ea2c5f815/index.js#L19-L34

A quick workaround for now is to bring back the original value after MagentoClient initialization.

    const client = Magento2Client(config.magento1.customApi)
    config.magento1.customApi.version = ''

lukeromanowicz avatar May 10 '19 07:05 lukeromanowicz