You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/06/12 06:15:38 UTC

[GitHub] [pulsar] miton18 opened a new issue #4516: Strange HTTP verbs on admin API

miton18 opened a new issue #4516: Strange HTTP verbs on admin API
URL: https://github.com/apache/pulsar/issues/4516
 
 
   **Describe the bug**
   I often use rest APIs and there is something disappointing in Pulsar admin one.
   
   When you want to [create a tenant](https://github.com/apache/pulsar/blob/8b2929b3e5403fb44653976dc74be287666f7b96/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/TenantsBase.java#L83):
   `PUT /admin/v2/tenants/{tenant}`
   
   And when you want to [update](https://github.com/apache/pulsar/blob/8b2929b3e5403fb44653976dc74be287666f7b96/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/TenantsBase.java#L110) admin roles and allowed cluster on an existing tenant:
   `POST /admin/v2/tenants/{tenant}`
   
   **To Reproduce**
   --
   
   **Expected behavior**
   A POST to create a tenant and a PUT to update it
   
   **Screenshots**
   --
   
   **Desktop (please complete the following information):**
   --
   
   **Additional context**
   Pulsar version: v2.3.1 
   [Tenants doc section](https://pulsar.apache.org/admin-rest-api/#operation/createTenant)
   

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


With regards,
Apache Git Services