Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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