如何使用Azure API管理链接API

如何使用Azure API管理链接API

问题描述:

如何使用Azure API管理在同一URL上链接多个API?

How to chain multiple APIs on the same URL using Azure API management?

我有两个用户存储的API,该用户使用api.

I have two APIs the user store and that user recources api.

我想构建rest api,以便资源与用户相关.

I want to build rest api so resources will related to user.

Mycompany/users/dani@gmail.com/resources.

Mycompany/users/dani@gmail.com/resources.

用户存储区api是mycompany/users 资源api是mycompany/resources.

User store api is mycompany/users Resources api is mycompany/resources.

我不想建立将这两个API整合在一起的其他服务.

I dont want to build additional service that will consolidate this two apis.

谢谢

您可以在API管理中创建一个指向多个不同后端API的API.使用set-backend-service策略更改某些操作的后端API.

You can create a single API in API Management that points to multiple different backend APIs. Use the set-backend-service policy to change the backend API for certain operations.