add return schema to smart API path

This commit is contained in:
Fabian Grünbichler
2016-10-03 13:53:36 +02:00
committed by Dietmar Maurer
parent dc1311cbe8
commit 16bf963b94

View File

@ -124,7 +124,15 @@ __PACKAGE__->register_method ({
},
},
},
returns => { type => 'object' },
returns => {
type => 'object',
properties => {
health => { type => 'string' },
type => { type => 'string', optional => 1 },
attributes => { type => 'array', optional => 1},
text => { type => 'string', optional => 1 },
},
},
code => sub {
my ($param) = @_;