Hello David, This is most likely because of the behavior of Knox where if it does not find any specific rewrite rules it tries to match the best one. Now, for simple use cases this will work. This will also work if you have a blanked /** in your service.xml file.
Where service.xml comes in handy is, when you have to have fine grained rules on paths, say for example different rules for /mypath/rule1 and /mypath/rule2 It will also help you if you want to specify one what part of request/response you want to apply specific rules i.e. response.headers, response.body, request.headers, request.body. Best, Sandeep On Mon, Jul 30, 2018 at 3:56 PM David Morin <[email protected]> wrote: > Hello, > > Despite a read of the Knox dev guide, I still misunderstand clearly the > link between service and rewrite.xml. > Sometimes, I reference <rewrite apply=XX to... > in the route of the > service.xml file but it seems to be optional. My rules are still taken into > account with an implicit rule according to logs. > So, I don't know even more. when we need to reference the rules to apply > for each route in service.xml. > > Thanks > David >
