why The API could not be invoked by postman or httpclient?

跟風遠走 提交于 2019-12-14 03:31:45

问题


The API's Ip address is 172.17.0.1. Thus, I invoke it in postman,how can The browse or postman find the ip address? and I think it is the reason why postman or browse could not invoke the API gererated by AM


回答1:


The problem is that you are trying to invoke a private IP.

Also, I don't think what you are trying to call is an API in WSO2 API cloud. URLs of APIs in WSO2 API cloud look like this.

http://gateway.api.cloud.wso2.com/t/mytenant/pizzashack/1.0.0 



回答2:


As per the chat we had, you should use your public IP instead of private one if you need external parties to access your APIs.



来源:https://stackoverflow.com/questions/41390291/why-the-api-could-not-be-invoked-by-postman-or-httpclient

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!