API endpoints mindful of request parameters

Is it possible to define two different endpoints (perhaps using regex) to differentiate these two api uris,

  1. POST /wallets/{wallet-id}/deposits?initialise=true

  2. POST /wallets/{wallet-id}/deposits?confirm=true

i.e just the request parameters being different

Appreciate your help on this.



No, at this point it is not possible configure separate routes based on query arguments.

But if you really needs to do this and writing a custom Lua plugin is an option, then you could create a single route to /wallets/{wallet-id}/deposits and then apply a custom plugin to it that can reroute the request to different services based on the query argument.

Hope that helps!

Thank you for the reply Hisham. Would be nice if these are supported out of the box.