0

是否可以让 API Manager 将传入的客户端 API 调用重定向到根据客户端数据自定义的后端 URL?

在我们的后端,我们为每个客户端激活不同的实例 URL,例如:

  • client1.api.domain.internal
  • client2.api.domain.internal
  • ...

客户端连接到 API Manager 到一个唯一的共享地址,例如 api.domain.ext,然后客户端应相应地路由到内部 API(参数绑定到客户端配置文件)。

这可以通过配置实现还是有必要开发自定义组件?

4

1 回答 1

0

You can use API manager. Publish one API-A to the clients to subscribe publicly via publisher. Define another internal API-B (dont publish it) where do routing logic based on the clients' requests. Point the API_B as the production URL to the API_A. So, requests will be routed to your internal API-B, where you can define your mediation logic.

But for defining mediation logic, what you have to do is, open the API configuration in a TEXT editor and need to edit or via source view of the management console. You can follow ESB guide for various mediators to pick a right one.

Hope this helps!

于 2013-06-13T16:13:49.083 回答