add return schema to smart API path
This commit is contained in:
committed by
Dietmar Maurer
parent
dc1311cbe8
commit
16bf963b94
@ -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) = @_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user