Pular para o conteúdo principal
ExemploIntermediário1 min de leituraAtualizado em Apr 4, 2026
manualhttpgetweatherexternal-api

Buscar Clima

Workflow manual com HTTP GET - busca dados de uma API externa usando parâmetros fornecidos pelo usuário

Baixar ZIP · 1.4 KB

JSON Completo

Clique para expandir
{
"description": "Manual workflow with HTTP GET — fetches data from an external API using user-provided parameters",
"tags": [
"manual",
"http",
"get",
"weather",
"external-api"
],
"document": {
"name": "Fetch Weather",
"enabled": true,
"log_level": "info",
"trigger": {
"type": "manual"
},
"workflowInput": [
{
"name": "city",
"description": "City name",
"schema": {
"type": "string",
"required": true
}
}
],
"steps": [
{
"condition": {
"expr": "true",
"onFailure": "throw",
"resultType": "any"
},
"action": {
"actionType": "actions/network/http/request/send",
"actions/network/http/request/send": {
"method": "GET",
"url": {
"expr": "\"https://wttr.in/\"+encode_uri(city)+\"?format=j1\"",
"onFailure": "throw",
"resultType": "any"
},
"headers": [],
"returnBuffer": false,
"cache": false
}
}
}
],
"returnExpression": {
"expr": "step(0).data"
}
}
}
TipoWorkflow
Regras1
Canalany
Versão1.0.0
Baixar ZIP
manual-http1.4 KB
Nesta página