X-Git-Url: https://git.proxmox.com/?p=pve-client.git;a=blobdiff_plain;f=extractapi.pl;h=8a650df26a9e99a4bff642ba8d8bf2b0bed295ab;hp=1971c9cf139edd4eee26d4cdb120fb9f4467404a;hb=2ecf9b57e894b6308daee2e60a2d7f5bd417932c;hpb=826591e032a3d2161abf21b5007f116431ecd22a diff --git a/extractapi.pl b/extractapi.pl index 1971c9c..8a650df 100755 --- a/extractapi.pl +++ b/extractapi.pl @@ -32,9 +32,16 @@ sub remove_code_refs { } } -my $tree = PVE::RESTHandler::api_dump('PVE::API2', undef, 1); - -remove_code_refs($tree); -Storable::store_fd($tree, \*STDOUT); +my $root = { + path => '/', + text => '', + children => PVE::RESTHandler::api_dump('PVE::API2', undef, 1), + info => { + GET => PVE::API2->map_method_by_name('index'), + }, +}; + +remove_code_refs($root); +Storable::store_fd($root, \*STDOUT); exit(0);