
21 Jan
2014
21 Jan
'14
4:16 p.m.
Reviewed-by: Crístian Viana <vianac@linux.vnet.ibm.com> Am 21-01-2014 12:03, schrieb shaohef@linux.vnet.ibm.com:
From: ShaoHe Feng <shaohef@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@linux.vnet.ibm.com>