Multiple APIs with interleaved paths

I’m trying to figure out how to configure tyk gateway to support multiple backend microservices with interleaved paths. I couldn’t see anything obvious in the docs so hoping someone here could point me in the right direction.

My confusion is that without a common prefix per upstream I can’t see how to merge the APIs into one

Given two (or more) upstream services exposing multiple paths:

  • service-a.local
    • /users
    • /users/{id}/foo/bar
    • /people
    • /people/{id}
  • service-b.local:
    • /users/{id}/baz/bar
    • /people/{id}/baz

Hello @obfu5c8 and welcome to the community :partying_face:

Have you had a look at our URL Rewrite middleware?

Do note that you can use regexes in the path field to match the beginning and end of the string

If you run into issues, I am always a message away.