【发布时间】:2017-07-27 07:38:25
【问题描述】:
假设我有一个带有 post 方法的 api http://host:port/api/v1/xxxx 并接受 json 正文:
{ "inputText":"从高知到南极洲旅行" }
如何将 post api 添加到 kong 并调用它?
【问题讨论】:
假设我有一个带有 post 方法的 api http://host:port/api/v1/xxxx 并接受 json 正文:
{ "inputText":"从高知到南极洲旅行" }
如何将 post api 添加到 kong 并调用它?
【问题讨论】:
只需添加一个 API 对象 您需要填写参数(名称:随便,uris:/api/v1/xxxx,upstream_url:http://host:port/api/v1/xxxx)然后您可以使用http://your_kong_service:8000/api/v1/xxxx调用它
【讨论】: