ChelinTsien opened a new issue #933: it return message mistable when I use 
dashboard  to create upstream 
URL: https://github.com/apache/incubator-apisix/issues/933
 
 
   ```
   curl 'http://apisix.iresty.com/apisix/admin/upstreams' -H 'Connection: 
keep-alive' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'Accept: 
application/json, text/plain, */*' -H 'Origin: http://apisix.iresty.com' -H 
'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/78.0.3904.108 Safari/537.36' -H 'Content-Type: 
application/json;charset=UTF-8' -H 'Referer: 
http://apisix.iresty.com/apisix/dashboard/' -H 'Accept-Encoding: gzip, deflate' 
-H 'Accept-Language: zh-CN,zh;q=0.9' -H 'Cookie: 
vue_typescript_admin_access_token=admin-token' --data-binary 
'{"type":"roundrobin","nodes":{"192.168.11.1:20":0},"desc":"test1"}' 
--compressed --insecure
   ```
   
   response: 
   ```json
   
{"node":{"value":{"nodes":{"192.168.11.1:20":0},"desc":"test1","type":"roundrobin"},"createdIndex":34710,"key":"\/apisix\/upstreams\/00000000000000034710","modifiedIndex":34710},"action":"create"}
   ```
   
   
   Why the  key value is not  "\/apisix\/upstreams\/34710"?
   But the  upstream id is 34710 in dashboard 
   

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


With regards,
Apache Git Services

Reply via email to