【问题标题】:How to perform a GET API call in WSO2SP如何在 WSO2SP 中执行 GET API 调用
【发布时间】:2019-08-13 12:22:33
【问题描述】:

如何在 WSO2 流处理器中执行 GET API 调用?有什么工作示例可以作为参考吗?

我看到的所有示例都只显示了一个 POST 调用。除了将“方法”参数从 POST 更改为 GET 之外,它的完成方式有什么不同吗?

这是一个示例代码。

@sink(type='http-request', sink.id='sample', publisher.url='http://<host>:<port>/parse?q={{q}}&a={{a}}&b={{b}}', method='GET', @map(type='json', @payload("{'q':{{q}}, 'project':{{project}}, 'model':{{model}}}"))) 
define stream interstream(q string, a string, b string);

@source(type='http-response', sink.id='sample') 
define stream outputstream(message string);

【问题讨论】:

    标签: siddhi stream-processing wso2sp


    【解决方案1】:

    不,您只需更改方法参数即可。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-15
      • 2019-05-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多