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

Reply via email to