我已在本地计算机上将Tyk(仪表板,网关和泵)安装为docker映像。
我们已经通过(系统管理-> API->添加新API)通过Tyk Dashboard UI创建了具有以下配置的API。
API名称:我的API 侦听路径:/ test-api / 目标网址:http://httpbin.org/
现在的问题是,当我们访问API时出现“找不到”错误。
有人可以帮助我解决此问题吗?
请求:curl -X GET http://api-dashboard:3000/test-api/get -v 响应:404(未找到)
Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to api-dashboard (127.0.0.1) port 3000 (#0)
> GET /test-api/get HTTP/1.1
> Host: api-dashboard:3000
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Access-Control-Allow-Credentials: true
< Cache-Control: no-store, no-cache, private
< Strict-Transport-Security: max-age=63072000; includeSubDomains
< X-Content-Type-Options: nosniff
< X-Frame-Options: DENY
< Date: Wed, 24 Apr 2019 08:58:35 GMT
< Content-Length: 9
< Content-Type: text/plain; charset=utf-8
<
* Connection #0 to host api-dashboard left intact