Azure Logic Apps HTTP Server

Yash 86 Reputation points
2020-12-09T02:32:23.46+00:00

Can anyone please help me to understand, how can I create a calculator using azure logic apps which will receive http request as application/json.

Request body will mainly contain 2 numbers(n1 & n2) & 1 string(operator with operands as add, subtract, multiply, divide).

On the basis of operator, app performs the operation on n1 & n2, and sends the response as application/json.

Response body contains n1, n2 & result.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,816 questions
0 comments No comments
{count} votes

Accepted answer
  1. JayaC-MSFT 5,521 Reputation points
    2020-12-09T09:31:36.173+00:00

    @Yash For Http request - response please follow : https://learn.microsoft.com/en-us/azure/connectors/connectors-native-reqres

    For implementing the logic, you can use Condition Control to check the operator provided in the request body and use Math Functions for compute purpose. Then you can pass the output ( ref to : https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-create-variables-store-values) in the Response action

    Let me know if this helps. If it does, please don't forget to " Accept the answer" and " Up-vote" so that it could help others in the community.

    0 comments No comments

0 additional answers

Sort by: Most helpful