nic-chen opened a new issue #896:
URL: https://github.com/apache/apisix-dashboard/issues/896


   # Bug report
   
   ## Describe the bug
   
   `admin api` supports the id field as string and int type, `manager api` only 
supports string, 
   which will cause the data with int type id entered in `admin api` cannot be 
displayed with `manager api`
   
   ## How to Reproduce
   
   1.  create upstream
   ```sh
   curl "http://127.0.0.1:9080/apisix/admin/upstreams/60"; -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -i -X PUT -d '
   {
       "type": "roundrobin",
        "name":"cmd-test",
        "desc":"cmd-test-desc",
       "nodes": {
           "127.0.0.1:58080": 1
       }
   }'
   ```
   
   2. use upstream  id as int
   ```
   curl "http://127.0.0.1:9080/apisix/admin/routes/6"; -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "uri": "/*",
        "name":"route test",
        "desc":"hello route",
       "host": "127.0.0.1",    
       "upstream_id": 60
   }'
   ```
   
   


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