Content-Type
, Authorization
).You want to create a Logic App that:
When an HTTP request is received
{ "type": "object", "properties": { "city": { "type": "string" } } }
HTTP
GET
https://api.weatherapi.com/v1/current.json?key=YOUR_API_KEY&q=@{triggerBody()?['city']}
@{triggerBody()?['city']}
to pass the city name from the trigger.Response
200
Content-Type
: application/json
Body
output from the HTTP action to return the weather API response.{ "city": "London" }
@{triggerBody()?['city']}
) to pass data between steps.This approach allows you to create flexible and powerful workflows that interact with REST APIs and return responses to clients.