[Kimchi-devel] [PATCH V2 2/4] improve controller: tag the collections/resouces of root with @urlSubNode
Crístian Viana
vianac at linux.vnet.ibm.com
Tue Jan 21 16:16:23 UTC 2014
Reviewed-by: Crístian Viana <vianac at linux.vnet.ibm.com>
Am 21-01-2014 12:03, schrieb shaohef at linux.vnet.ibm.com:
> From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
>
> we can difine a /host as follow:
>
> @urlSubNode("host", True)
> class Host(Resource):
> def __init__(self, model, id=None):
> super(Host, self).__init__(model, id)
>
> @urlSubNode("host", True) means:
> the URL "/host" is root.Host, and it need authentication
>
> Signed-off-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
More information about the Kimchi-devel
mailing list