On Mon, Nov 17, 2014 at 1:36 PM, Tanya Madurapperuma <[email protected]> wrote:
> Isn''t the *addAPISubscription* action in subscription-add.jag does the > same? > +1. Yes we may use same Thanks, sanjeewa. > Thanks, > Tanya > > On Mon, Nov 17, 2014 at 12:32 PM, Roshan Wijesena <[email protected]> wrote: > >> Hi Devs, >> >> Current existing addSubscription API [1] accept Application Id as a >> parameter in POST request. It seems, use an internal attribute as an API >> parameter would not be a good approach. >> >> Further, I would like to propose a new API, which will take application >> name and user name as parameters instead of application ID. Sample curl >> request for the proposed API will be as below. >> >> curl -X POST -b cookies >> http://localhost:9763/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag >> -d >> 'action=addSubscriptionByName&name=API1&version=v1&provider=admin&tier=Gold&applicationName=PizzaShop&userName=admin' >> >> WDYT? >> >> [1] https://docs.wso2.com/display/AM170/Store+APIs. >> >> Regards >> Roshan. >> >> -- >> Roshan Wijesena. >> Senior Software Engineer-WSO2 Inc. >> Mobile: *+94752126789* >> Email: [email protected] >> *WSO2, Inc. :** wso2.com <http://wso2.com/>* >> lean.enterprise.middleware. >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Tanya Madurapperuma > > Software Engineer, > WSO2 Inc. : wso2.com > Mobile : +94718184439 > Blog : http://tanyamadurapperuma.blogspot.com > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 <http://sanjeewamalalgoda.blogspot.com/>blog :http://sanjeewamalalgoda.blogspot.com/ <http://sanjeewamalalgoda.blogspot.com/>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
