You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "kingluo (via GitHub)" <gi...@apache.org> on 2023/04/01 05:43:55 UTC
[GitHub] [apisix] kingluo commented on a diff in pull request #8730: docs: (fix) tutorial expose your service
kingluo commented on code in PR #8730:
URL: https://github.com/apache/apisix/pull/8730#discussion_r1155061745
##########
docs/en/latest/tutorials/expose-api.md:
##########
@@ -111,7 +111,7 @@ curl "http://127.0.0.1:9180/apisix/admin/routes/1" \
After creating the Route, you can test the Service with the following command:
```
-curl -i -X GET "http://127.0.0.1:9080/get?foo1=bar1&foo2=bar2" -H "Host: example.com"
+curl -i -X GET "http://127.0.0.1:9080/anything/get?foo1=bar1&foo2=bar2" -H "Host: example.com"
```
APISIX will forward the request to `http://httpbin.org:80/anything/foo?arg=10`.
Review Comment:
Yes, the route uri is `/anything/*`, so you have to use `/anything` as prefix.
Besides your fix, you need to fix the url of this sentence to `http://httpbin.org:80/anything/get?foo1=bar1&foo2=bar`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org