Route by start with API Slug & OData URI


#1

Hi,

  1. Is it possible to route by startwith?

For example, /order.*/ routes to http://order.myapi.com

   - http://mytyk.com/order.retail/id routes to http://order.myapi.com/order.retail/id
   - http://mytyk.com/order.xsp/id routes to http://order.myapi.com/order.xsp/id
  1. It it possible to support OData URI?
For example, http://mytyk.com/order.retail('id')

thanks,
Kalin


#2

Not that I am aware of, the muxer supports in-path variables (gorilla mux), but you would need to disable listen path stripping as it would beak downstream when we reconstruct the URI for the upstream server.

You could probably do these shenanigans with the host manager templates and NGinX though.

Host manager is deprecated, but still ships with the dashboard. So you could just use its templates to generate any kind of dynamic routing you want - that’s how we do subdomain based routing in Tyk Cloud.