【问题标题】:how to add a post api in kong and call it?如何在kong中添加post api并调用它?
【发布时间】:2017-07-27 07:38:25
【问题描述】:

假设我有一个带有 post 方法的 api http://host:port/api/v1/xxxx 并接受 json 正文:

{ "inputText":"从高知到南极洲旅行" }

如何将 post api 添加到 kong 并调用它?

【问题讨论】:

    标签: post kong


    【解决方案1】:

    只需添加一个 API 对象 您需要填写参数(名称:随便,uris:/api/v1/xxxx,upstream_url:http://host:port/api/v1/xxxx)然后您可以使用http://your_kong_service:8000/api/v1/xxxx调用它

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-29
      • 2018-10-27
      • 2017-11-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多