我正在关注Kong API Gateway的official tutorial。
该指南向我展示了如何创建一个指向http://httpbin.org
的简单API
我对本教程有几个问题。
- 指南演示添加“--data'hosts = example.com'”。这条线是什么意思?这一行是否意味着,example.com是允许使用此API的主机?
- doc中主机,uris和方法的实际含义是什么?我尝试使用“--data'methods = GET'”而不是“--data'hosts = example.com'”创建另一个API。我注意到的区别是,我不需要使用cURL来使用API,但我可以使用任何浏览器来使用API。
- 为什么目标端点(http://httpbin.org)上游而不是下游?据我了解,在这种情况下,Kong应该是上游,目标端点应该是下游......
醇>
上游系统是任何向其发送数据的系统
Collaboration Server系统。下游系统是一个系统
从Collaboration Server系统接收数据。 reference
谢谢大家的时间!