tzssangglass commented on issue #7596:
URL: https://github.com/apache/apisix/issues/7596#issuecomment-1202525166

   I noticed one detail.
   ```
   curl http://172.21.48.10:9080/apisix/admin/routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "methods": ["GET"],
       "uri": "/index.html",
       "id": 1,
       "plugins": {
           "key-auth": {}
       }                   
   }'
   ```
   
   It should fail, but it has worked, I have verified it.
   
   Just like this configuration below:
   
   ```
   curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
     "uri":"/index/*"
   }'
   ```
   
   It will fail because no upstream or service is configured.


-- 
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