Commit ea9d110f authored by Dietmar Maurer's avatar Dietmar Maurer

Formatter/HTML: add method description

parent 3d84ba73
...@@ -182,6 +182,10 @@ PVE::HTTPServer::register_formatter($portal_format, sub { ...@@ -182,6 +182,10 @@ PVE::HTTPServer::register_formatter($portal_format, sub {
} }
my $info = $res->{info}; my $info = $res->{info};
$html .= $doc->el(tag => 'h3', text => 'Description');
$html .= $doc->el(tag => 'p', text => $info->{description});
my $lnk = PVE::JSONSchema::method_get_child_link($info); my $lnk = PVE::JSONSchema::method_get_child_link($info);
if ($lnk && $data && $data->{data} && HTTP::Status::is_success($res->{status})) { if ($lnk && $data && $data->{data} && HTTP::Status::is_success($res->{status})) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment