Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Is there any pre/post dispatch events for the Magento 2 web API (REST/SOAP) ?
There are no events in Magento 2 web APIs, but it is possible to extend any public method in the system using befor/after/around plugins. Also see why it is better to use plugins instead of observers.
If you want to add something to the response you may want to look into extension_attributes. Here is description in magento docs and here another question on stack
I don't know maybe this is a dirty way, override this class
Required, but never shown