shwstppr commented on PR #11382:
URL: https://github.com/apache/cloudstack/pull/11382#issuecomment-3149620920

   @DaanHoogland with change, it already returns GET/POST based on the apiName 
when the annotation is not added,
   
   ```
   (local) 🐱 > list apis filter=name,httprequesttype
   {
     "api": [
       {
         "httprequesttype": "POST",
         "name": "createVPCOffering"
       },
       {
         "httprequesttype": "POST",
         "name": "ldapCreateAccount"
       },
       {
         "httprequesttype": "POST",
         "name": "copyIso"
       },
       {
         "httprequesttype": "POST",
         "name": "deleteAutoScaleVmProfile"
       },
       {
         "httprequesttype": "POST",
         "name": "rebootSystemVm"
       },
       {
         "httprequesttype": "GET",
         "name": "listDedicatedZones"
       },
       {
         "httprequesttype": "GET",
         "name": "listElastistorPool"
       },
       {
         "httprequesttype": "POST",
         "name": "changeBgpPeersForNetwork"
       },
       {
         "httprequesttype": "POST",
         "name": "removeNodesFromKubernetesCluster"
       },
   ...
   ```
   
   I added the annotation to some classes because they were listed in 
ApiServlet class as GET commands explicitly


-- 
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: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to