Extending API resource routes


I am trying to extend base resource API routes.

In my config/api folder which is parametered to define API routes, I can easily add routes for any custom resource. However, for base resources like the Order for example, I have to create a Order.xml so that my custom order.yaml is taken into account.

The annoying part is that if I want to add itemOperations, for example, I will have to translate all the base operations in yaml in my file, or write my routes in xml, which I’d rather not do.

Is there something else that can make it possible to add any routes I write in yaml to the predefined xml routes ?