elgentos / magento2-inventory-log

Magento 2 - Inventory Log
29 stars 11 forks source link

Added support for stock updates via REST api #18

Closed reense closed 6 months ago

reense commented 6 months ago

Hi @peterjaap!

First of all, thanks for the module! For one of our clients I needed to register updates via the REST WebAPI as well. Instead of creating an extended module, I thought it might be useful for other people as well.

This change adds support for stock mutations executed via the REST-webapi (no support for the GraphQL API, sorry). I tried to make my changes in the code style of the original module, but I'm open for any feedback. Let me know what you think!

peterjaap commented 6 months ago

@reense thanks, that looks good! Great addition :) :+1: