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: ros...@wso2.com *WSO2, Inc. :** wso2.com <http://wso2.com/>* lean.enterprise.middleware.
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev