- added magento annotations to new created files in module;
- modified rest controller - removed unnecessary depenancy and methods, modified dispatch method;
- modified \Magento\Webapi\Controller\Rest\RequestProcessorInterface interface and classes that implement it - removed "canProcess" method;
- modified \Magento\Webapi\Controller\Rest\RequestProcessorPool - now it implements RequestProcessorInterface, removed methods "_getSortedRequestProcessors" and "getRequestProcessor",
added "process" mathods which match rest request processor and call it "process" method;
- modified webapi_rest/di.xml