stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Isuru Haththotuwa <isu...@apache.org>
Subject Re: Stratos meta data service - Initial Design
Date Tue, 12 Aug 2014 08:59:25 GMT
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 <gayang@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 <imesh@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 <gayang@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 <gayang@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 <lakmal@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  : gayang@wso2.com  | mobile : +94 766819985
>>>
>>>
>>>
>>>
>>> --
>>> Best Regards,
>>>
>>> Gayan Gunarathne
>>> Technical Lead
>>> WSO2 Inc. (http://wso2.com)
>>>  email  : gayang@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  : gayang@wso2.com  | mobile : +94 766819985
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* <http://wso2.com/>*
>
>
> * <http://wso2.com/>*
>
>
>

Mime
View raw message