如何使用Azure API管理链接API [英] How to chain APIs using Azure API management

查看:58
本文介绍了如何使用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.

这篇关于如何使用Azure API管理链接API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆