Question: I'm trying to modify the way my application handles '/xas' requests. Currently, if a request doesn't include 'offset' and 'amount', I'd like to find a way to add these parameters through a request handler or another method. I've tried adding a custom request handler using the following code: ``` Core.addRequestHandler("xas/", new CustomRequestHandler()); ``` However, the custom request handler isn't being invoked. An example of the incoming request looks like this: ```{"action":"retrieve_by_xpath","params":{"xpath":"//abc.data","schema":{}}} ``` I'd like to modify this to include default values for 'offset' and 'amount' like this: `` {"action":"retrieve_by_xpath","params":{"xpath":"//abc.data","schema":{"offset":0,"amount":12}}} ``` Could you please assist me in figuring out why the custom request handler isn't being invoked and provide guidance on how to achieve this?
asked
Bhanu Gaur
1 answers
2
I don't think you can overwrite the built-in request handlers.
If you need that feature it's rather a topic for the idea forum - given a good motivation for it.