Hi, Current CLI implementation reads the JSON file content and invoke the relevant Stratos API with file content as the message payload
On Wed, Mar 4, 2015 at 11:23 AM, Imesh Gunaratne <im...@apache.org> wrote: > Hi Srinivas, > > A good question! As Vishanth has mentioned you could refer the existing > Java based CLI first. In that we do not use name value pairs for parsing > complex artifacts, rather they are directly passed to the message body. > > Thanks > > On Wed, Mar 4, 2015 at 1:31 AM, srinivas devaki < > mr.eightnotei...@gmail.com> wrote: > >> hi, >> about the 2. >> i mean that, for example to create a new application we have to send a >> lot of [*data]. >> but the issue proposes a CLI, inspite of more key value pairs.. >> So how does the CLI supposed to take the details of application?? (from a >> Config file or from Console Interface like ncurses) >> >> >> >> [*data]: >> { >> "applicationId": "app_group_v1", >> "alias": "mytestapp1", >> "components": { >> "groups": [ >> { >> "name": "group6", >> "alias": "mygroup6", >> "groupMinInstances": 2, >> "groupMaxInstances": 3, >> "cartridges": [ >> { >> "type": "tomcat2", >> "cartridgeMin": 1, >> "cartridgeMax": 1, >> "subscribableInfo": { >> "alias": "tom2group6", >> "autoscalingPolicy": "autoscale_policy_1", >> "artifactRepository":{ >> "privateRepo":false, >> "repoUrl":" >> https://github.com/imesh/stratos-tomcat2-applications.git" >> <https://github.com/imesh/stratos-tomcat2-applications.git>, >> "repoUsername":"", >> "repoPassword":"" >> } >> } >> } >> ] >> } >> ], >> "cartridges": [ >> { >> "type": "tomcat", >> "cartridgeMin": 1, >> "cartridgeMax": 1, >> "subscribableInfo": { >> "alias": "mytomcat", >> "autoscalingPolicy": "autoscale_policy_1", >> "artifactRepository":{ >> "privateRepo":false, >> "repoUrl":" >> https://github.com/imesh/stratos-tomcat-applications.git" >> <https://github.com/imesh/stratos-tomcat-applications.git>, >> "repoUsername":"", >> "repoPassword":"" >> } >> } >> } >> ], >> "dependencies": { >> "startupOrders": [ >> "group.group6,cartridge.tomcat" >> ], >> "terminationBehaviour": "terminate-none" >> } >> } >> } >> >> >> >> On Wed, Mar 4, 2015 at 12:43 AM, Imesh Gunaratne <im...@apache.org> >> wrote: >> >>> Hi, >>> >>> Yes there was another proposal for this project. Anyway multiple people >>> can submit proposals, after reviewing them we can select the best. >>> >>> On Tue, Mar 3, 2015 at 6:26 PM, srinivas devaki < >>> mr.eightnotei...@gmail.com> wrote: >>> >>>> hello everyone, >>>> i'm checking out it's(stratos cli) REST api. and can i get more info >>>> about >>>> the project. >>>> 1. is it a client side application or a micro service? >>>> >>> Yes this is a client application >>> >>> >>>> 2. if it is client side, i have seen that there's lot of information >>>> for a >>>> command line client. are most of the details are default?? >>>> >>> Can you elaborate your question? >>> >>> >>>> 3. can i know more about, what those requests do in the server side?? >>> >>> API is used for managing the Stratos Platform as a Service (PaaS) >>> solution. >>> >>> Thanks >>> >>> >>> On Tue, Mar 3, 2015 at 11:48 PM, Vishanth Balasubramaniam < >>> vishan...@wso2.com> wrote: >>> >>>> Hi, >>>> >>>> I believe someone else is also working on the same JIRA[1]. Please >>>> correct me if I am wrong. >>>> >>>> [1] - https://issues.apache.org/jira/browse/STRATOS-1187 >>>> >>>> Thank you, >>>> Vishanth >>>> >>>> On Tue, Mar 3, 2015 at 11:38 PM, Nirmal Fernando < >>>> nirmal070...@gmail.com> wrote: >>>> >>>>> [Moved to Stratos list] >>>>> >>>>> On Tue, Mar 3, 2015 at 6:26 PM, srinivas devaki < >>>>> mr.eightnotei...@gmail.com> wrote: >>>>> >>>>>> hello everyone, >>>>>> i'm checking out it's(stratos cli) REST api. and can i get more info >>>>>> about >>>>>> the project. >>>>>> 1. is it a client side application or a micro service? >>>>>> 2. if it is client side, i have seen that there's lot of information >>>>>> for a >>>>>> command line client. are most of the details are default?? >>>>>> 3. can i know more about, what those requests do in the server side?? >>>>>> >>>>>> thanks.. >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Best Regards, >>>>> Nirmal >>>>> >>>>> Nirmal Fernando. >>>>> PPMC Member & Committer of Apache Stratos, >>>>> Senior Software Engineer, WSO2 Inc. >>>>> >>>>> Blog: http://nirmalfdo.blogspot.com/ >>>>> >>>> >>>> >>>> >>>> -- >>>> *Vishanth Balasubramaniam* >>>> Software Engineer >>>> WSO2 Inc.; http://wso2.com >>>> lean.enterprise.middleware >>>> >>>> mobile: *+94771737718* >>>> about me: *http://about.me/vishanth <http://about.me/vishanth>* >>>> >>>> >>> >>> >>> -- >>> Imesh Gunaratne >>> >>> Technical Lead, WSO2 >>> Committer & PMC Member, Apache Stratos >>> >> >> > > > -- > Imesh Gunaratne > > Technical Lead, WSO2 > Committer & PMC Member, Apache Stratos > -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897