APIs with same origin/listen path


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?


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


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


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


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?