5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-01-10 01:17:51 +03:00
pve-docs/extractapi.pl

16 lines
277 B
Perl
Executable File

#!/usr/bin/perl
use strict;
use warnings;
use PVE::RESTHandler;
use PVE::API2;
use JSON;
my $tree = PVE::RESTHandler::api_dump_remove_refs(PVE::RESTHandler::api_dump('PVE::API2'));
print "var pveapi = " . to_json($tree, {pretty => 1, canonical => 1}) . ";\n\n";
exit(0);