我怎么能叫我的逻辑从应用程序的API在Azure中? [英] How can I call my Logic App from API app in Azure?

查看:210
本文介绍了我怎么能叫我的逻辑从应用程序的API在Azure中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的任务,5月看起来很简单。我命名API-A和API-B两种API。我需要在这两个API之间创建一个逻辑的应用程序。 API-A应该叫我的逻辑App和逻辑应用程序应该调用API-B。

Here is my task and may looks very simple. I've two APIs named API-A and API-B. I need to create a Logic App in between these two APIs. API-A should call my Logic App and Logic App should call API-B.

请帮我的步骤做。

谢谢,
湿婆

推荐答案

是的。

1)创建API应用程序/网络API

1) Create API App/Web API

2)部署API应用程序来Azure中或其他地方。

2) Deploy API app to Azure or somewhere

3)获取该地址。例如, http://example.com/api/values​​ 是默认的。

3) Get the address of that. For example, http://example.com/api/values is the default.

4)创建逻辑应用程序

4) Create Logic App

5)添加HTTP行动,GET动词,并粘贴 http://example.com/api/values 来的URI。

5) Add HTTP action, with the GET verb, and paste http://example.com/api/values to the URI.

6)点击+您的作用下,选择POST,粘贴URI和对身体按钮BODY字段中,单击要插入从previous行动内容 - 它会自动在那里

6) Click + below your action and select POST, paste URI and in the BODY field click on the Body button to insert the content from the previous action - it should be there automatically.

下面,在默认的API应用程序,第一个HTTP动作将调用应返回值1,值2控制器的GET动作。然后,它的内容发送到第二HTTP动作的POST操作。

Here, in the default API app, the first HTTP action will invoke the GET action of the controller which should return "value1", "value2". Then it send that content to the POST action of the second HTTP action.

在这里输入的形象描述

这篇关于我怎么能叫我的逻辑从应用程序的API在Azure中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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