suninuni commented on issue #1168:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/1168#issuecomment-1194887790

   > Have you tried creating the same routing rules directly using APISIX's 
admin API?
   
   Yes
   
   ```shell
   bash-5.1# curl -s -H 'X-API-KEY: xxx' 
127.0.0.1:9180/apisix/admin/routes/test -X PUT -i -d '
   {
       "uri": "/index.html",
       "hosts": ["foo.com", "*.bar.com"],
       "methods": ["PUT", "GET"],
       "vars": [
           [
               "arg_accountId",
               "in",
               [
                   "111"
               ]
           ]
   }'  "upstream_id": "b18f1d01"
   HTTP/1.1 200 OK
   Date: Tue, 26 Jul 2022 02:04:25 GMT
   Content-Type: application/json
   Transfer-Encoding: chunked
   Connection: keep-alive
   Server: APISIX/2.11.0
   Access-Control-Allow-Origin: *
   Access-Control-Allow-Credentials: true
   Access-Control-Expose-Headers: *
   Access-Control-Max-Age: 3600
   
   
{"action":"set","node":{"key":"\/apisix\/routes\/test","value":{"create_time":1658801026,"upstream_id":"b18f1d01","hosts":["foo.com","*.bar.com"],"uri":"\/index.html","status":1,"update_time":1658801065,"priority":0,"id":"test","methods":["PUT","GET"],"vars":[["arg_accountId","in",["111"]]]}}}
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to