okaybase commented on a change in pull request #4661:
URL: https://github.com/apache/apisix/pull/4661#discussion_r676268137
##########
File path: apisix/core/etcd.lua
##########
@@ -311,6 +311,9 @@ function _M.push(key, value, ttl)
local index = res.body.header.revision
index = string.format("%020d", index)
+ -- set the basic id attribute
+ value.id = index
Review comment:
thanks for your review firstly.
Consumer regards the username property as the identity, so only the HTTP PUT
method is supported for creating a new consumer.
This change is for creating a resource via POST. @nic-chen
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]