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


   ## Issue description
   
   - Fe create route `name` field is required.
   
   - However, in BE, the `name` field is still optional. PR: #1606  adds the BE 
judgment on whether the `name` field is repeated when creating a `route`.
   
   - When I use BE interface instead of FE to create route I found a 
problem(`127.0.0.1:9000/apisix/admin/routes POST create route`). 
   - I create a `route` without inserting the `name` field, I can succeed the 
first time because it is not a required field, but I still do not pass in the 
name field in the second time, which will trigger the repeated judgment of the 
`name` field, resulting in the failure to create a route.
   
   - So I think there is a problem here. my idea is:
   
   1. The `name` field be is still not required, but the `name` field is empty, 
so repeated judgment is not required.
   2. The `name` field of be `route` is directly changed to a required field. 
At present, the logic will not have the situation that multiple `name` fields 
are empty and cannot be added.
   
   cc @nic-chen @starsz @tokers @imjoey @gxthrj 
   Do you have any good suggestions?


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