Further clarification of point 1 , In current meta data service once you call the retrieve meta data service with cartridge specified, it will return whole set of meta data related to that cartridge. So in the client side you need to filter the information you needed from that response JSON object.
Thanks, Gayan On Tue, Aug 12, 2014 at 3:00 PM, Gayan Gunarathne <gay...@wso2.com> wrote: > Hi Isuru, > > Please find my inline comments in blue. > > 1. In addition to getting all the meta data at one time, is it possible to > specifically get the value for one meta data property? > > Currently it is not support for get a value of one meta data. Currently it > will return all the meta data related to the cartridge.Thanks for point out > this. I think if we can provide the another REST service for getting the > value of one meta data at a time will be a good addition for the current > meta data service. > > 2. Are the current rest operations (store and retrieve metadata) > restricted to super tenant? > No. It won't restrict to the super tenant admin only. > > > Thanks, > Gayan > > > On Tue, Aug 12, 2014 at 2:29 PM, Isuru Haththotuwa <isu...@apache.org> > wrote: > >> Hi Gayan, >> >> Great work with the initial version of the meta data service! >> >> I have a couple of questions regarding the current implementation. >> >> 1. In addition to getting all the meta data at one time, is it possible >> to specifically get the value for one meta data property? >> 2. Are the current rest operations (store and retrieve metadata) >> restricted to super tenant? >> >> >> On Wed, Jul 30, 2014 at 6:32 PM, Gayan Gunarathne <gay...@wso2.com> >> wrote: >> >>> Hi Imesh, >>> >>> Thanks for pointed out this.I will update the URLs in the document. >>> >>> Thanks, >>> Gayan >>> >>> >>> >>> >>> On Wed, Jul 30, 2014 at 6:25 PM, Imesh Gunaratne <im...@apache.org> >>> wrote: >>> >>>> Hi Gayan, >>>> >>>> The initial design of the metadata service looks good. I have few >>>> comments: >>>> >>>> - I could see the following URLs designed for posting and retrieving >>>> meta-data information: >>>> POST: admin/cartridge/metadatasubcription >>>> GET: >>>> admin/cartridge/metadataretrieve/<application-name>/<cartridge-type> >>>> >>>> IMO this design does not adhere to RESTful resource naming standards >>>> [1]. Ideally both POST and GET should have the same URL. Shall we redesign >>>> them to something like following: >>>> POST: admin/cartridge/<cartridge-type>/<application-name>/metadata/ >>>> GET: admin/cartridge/<cartridge-type>/<application-name>/metadata/ >>>> >>>> [1] http://www.restapitutorial.com/lessons/restfulresourcenaming.html >>>> >>>> Thanks >>>> >>>> >>>> >>>> >>>> On Wed, Jul 30, 2014 at 5:16 AM, Gayan Gunarathne <gay...@wso2.com> >>>> wrote: >>>> >>>>> Hi All, >>>>> >>>>> To publish the meta data with this REST API, I am thinking of adding >>>>> the meta data service publish REST API request from the "instance-started" >>>>> extension of the cartridge agent.I guess we can get the relevant meta data >>>>> from the Factors.Meta data will be different from cartridge to >>>>> cartridge.IMO we can use the addone(erb files) for the different >>>>> cartridges >>>>> to support this. >>>>> >>>>> Any thoughts or suggestions about this? >>>>> >>>>> Thanks, >>>>> Gayan >>>>> >>>>> >>>>> >>>>> >>>>> ---------- Forwarded message ---------- >>>>> From: Gayan Gunarathne <gay...@wso2.com> >>>>> Date: Thu, Jul 24, 2014 at 4:27 PM >>>>> Subject: Stratos meta data service - Initial Design >>>>> To: dev@stratos.apache.org, Lakmal Warusawithana <lak...@wso2.com> >>>>> >>>>> >>>>> Hi All, >>>>> >>>>> Based on the discussions[1][2], I have drafted the initial design for >>>>> the Stratos meta data service. >>>>> >>>>> MetaDataService-Design >>>>> <https://docs.google.com/a/wso2.com/document/d/1RkmBv290mleaUIsYYebMKZ8TTTyMrqWfqOY_nXgGLdw/edit?usp=drive_web> >>>>> >>>>> >>>>> Your inputs and suggestions regarding this is highly appreciated. >>>>> >>>>> >>>>> [1]. [Discuss] Grouping of services (cartridges) >>>>> [2]. [Discuss] Grouping of services with dependency cartridges >>>>> >>>>> >>>>> Thanks, >>>>> Gayan >>>>> >>>>> -- >>>>> >>>>> >>>>> Gayan Gunarathne >>>>> Technical Lead >>>>> WSO2 Inc. (http://wso2.com) >>>>> email : gay...@wso2.com | mobile : +94 766819985 >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Best Regards, >>>>> >>>>> Gayan Gunarathne >>>>> Technical Lead >>>>> WSO2 Inc. (http://wso2.com) >>>>> email : gay...@wso2.com | mobile : +94 766819985 >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> Imesh Gunaratne >>>> >>>> Technical Lead, WSO2 >>>> Committer & PPMC Member, Apache Stratos >>>> >>> >>> >>> >>> -- >>> Best Regards, >>> >>> Gayan Gunarathne >>> Technical Lead >>> WSO2 Inc. (http://wso2.com) >>> email : gay...@wso2.com | mobile : +94 766819985 >>> >>> -- >>> <%2B94%20766819985> >>> Thanks and Regards, >>> >>> Isuru H. >>> <%2B94%20766819985> >>> +94 716 358 048 <%2B94%20766819985>* <http://wso2.com/>* >>> >>> >>> * <http://wso2.com/>* >>> >>> >>> > > > -- > Best Regards, > > Gayan Gunarathne > Technical Lead > WSO2 Inc. (http://wso2.com) > email : gay...@wso2.com | mobile : +94 766819985 > > -- Best Regards, Gayan Gunarathne Technical Lead WSO2 Inc. (http://wso2.com) email : gay...@wso2.com | mobile : +94 766819985