APIs with same origin/listen path


#1

If I have two different apis that are configured with the same target url and the same listen path but different endpoints will tyk know how to properly route my inbound requests?

ex:

API 1 Target URL: api.origin.com
API 1 Listen Path: /

endpoints /photos, /galleries, /albums

API 2 Target URL: api.origin.com
API 2 Listen Path: /

endpoints /sports /scores /standings


#2

No, it will not, one of the API’s will not be loaded by the muxer.


#3

Do we have to specify a listen path? If not we could just add the endpoints we want correct?


#4

You do need to set a listen path.

Why do you need two APIs, in your example The targets are the same?

You can control ACL at the policy level by setting allowed endpoints there if it’s an access control issue?