cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chiradeep Vittal <>
Subject Re: Invoking an API from an API plugin
Date Mon, 15 Jul 2013 04:29:49 GMT
APIs should call the service interface directly and not call other APIs.

On 7/12/13 1:40 AM, "SuichII, Christopher" <> wrote:

>Er, I should have mentioned that it is not as easy as simply invoking one
>API command from another since all the CS API commands have private
>@paramenter members. Because of this, I cannot simply instantiate a
>command, populate it with the parameters and call execute() on it.
>On Jul 11, 2013, at 4:09 PM, Chris Suich <>
> wrote:
>> I'm writing an API plugin that needs to consume an API that already
>>exists in CS. The only way I can find to do this would be to send the
>>REST/HTTP request from my plugin, but I'm hoping there is an easier way.
>>Since both plugins are on the same Java classpath they have the ability
>>to invoke each other.
>> Is there a simple way to do this that I'm missing?
>> -Chris

View raw message