Azure Logic Apps HTTP Server

Yash 86 Reputation points

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

    @Yash For Http request - response please follow :

    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 : 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