Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用映射器添加两个输入,并以 JSON 的形式从 Postman 动态发送数据。因此,想要添加来自 Postman 的数据。
我假设您将拥有一个只有一个映射器的简单管道。东西如下。
假设您将两个变量作为 JSON 的输入a,b如下所示。
a
b
{ "a": 2, "b": 5 }
然后你可以有一个表达式,$a + $b并将其映射到另一个输出变量,如$c. 请参考以下屏幕截图。
$a + $b
$c
然后,您可以为此管道创建一个触发任务,并使用上述 JSON 作为主体从 Postman 触发。请参考以下屏幕截图。