sshniro commented on issue #930: request help: Doc on Getting Started guide for 
APISIX
URL: 
https://github.com/apache/incubator-apisix/issues/930#issuecomment-562216048
 
 
   @moonming I've started on the doc, but I'm having problems with the setup, 
maybe I'm doing it in the wrong way. I'm trying to expose a simple get endpoint 
from [httpbin](https://httpbin.org) via APISIX. 
   
   GET endpoint: [https://httpbin.org/get](https://httpbin.org/get)
   
   The following are my configurations (Currently trying to access the base 
site).
   
   ```bash
   curl http://127.0.0.1:9080/apisix/admin/services/201 -X PUT -d '
   {
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "https://httpbin.org:443": 1
           }
       }
   }'
   ```
   Then I define a route to access the service.
   ```bash
   curl http://127.0.0.1:9080/apisix/admin/routes/100 -X PUT -d '
   {
       "methods": ["GET"],
       "uri": "/foo",
       "service_id": "201"
   }'
   ```
   Following is the command I'm using to access my API.
   ```bash
   curl -i http://127.0.0.1:9080/foo
   ```
   But this ends up in 501 bad gateway error. Omitting the `https` section from 
the node configuration also yields the same error.
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to