idbeta opened a new issue #1127:
URL: https://github.com/apache/apisix-dashboard/issues/1127


   # Bug report
   
   ## Describe the bug
   
   manager-api do not support PATCH method:
   when using the following three types of bodies to update node of `service`, 
will be error
   1.
   ```
   {
        "upstream": {
                "nodes": [{
                        "host": "172.16.238.20",
                        "port": 1981,
                        "weight": 1
                }]
        }
   }
   ```
   2.
   ```
   {
       "upstream": {
           "nodes": {
               "39.97.63.216:80": 1
           }
       }
   }
   ```
   return error:
   ```
   "{\"code\":10000,\"message\":\"not a valid map: 
*entity.Service\",\"data\":null,\"request_id\":\"xxxxx\"}"
   ```
   
   3.
   ```
   PATCH 
http://127.0.0.1:9000/apisix/admin/services/your-service-id/upstream/nodes
   ... ...
   "404 page not found\n"
   ```
   
   and
   `ExpectCode` of the test framework does not work
   
   ## Expected behavior
   
   The `upstream nodes` of the service can be updated correctly.


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


Reply via email to