You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/10/25 00:10:41 UTC

[GitHub] [apisix] liuxiran commented on issue #2485: [discuss](Admin API): Need to support creating a new consumer via HTTP post?

liuxiran commented on issue #2485:
URL: https://github.com/apache/apisix/issues/2485#issuecomment-716071919


   @membphis this issue means that:
   * Admin-Api doc says: we can  create a consumer via HTTP POST request which can create comsumer id generated by server, but accurately cloud not and return the error msg below
   >  {"error_msg":"not supported `POST` method for consumer"}
    
   this error msg wrote in the code: https://github.com/apache/apisix/blob/master/apisix/admin/consumers.lua#L105 .
   it means that we did it on purpose,  so what is the reason consumer did not support `POST` request?
   
   * other resources in APISIX could support `POST` for creation, so we think `consumer` also need it
   
   reopen this issue and looking forward to your reply, thx again:)
   
   


----------------------------------------------------------------
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:
users@infra.apache.org