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


   # Bug report
   
   ## Describe the bug
   
   manager-api allows adding route with `uri` and `uris` at the same time.
   Because the front end is limited, the priority of the issue is not high.
   
   ## How to Reproduce
   
   ```
   {
                        caseDesc: "add route with uri and uris at the same 
time",
                        Object:   MangerApiExpect(t),
                        Method:   http.MethodPut,
                        Path:     "/apisix/admin/routes/r1",
                        Body: `{
                                        "uri": "/hello_notexist",
                                        "uris": ["/hello_notexist2","/hello"],
                                        "upstream": {
                                                "type": "roundrobin",
                                                "nodes": [{
                                                        "host": "172.16.238.20",
                                                        "port": 1980,
                                                        "weight": 1
                                                }]
                                        }
                                }`,
                        Headers:      map[string]string{"Authorization": token},
                        ExpectStatus: http.StatusBadRequest,
                },
   ```
   


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


Reply via email to