5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-01-06 13:17:48 +03:00
pve-docs/extractapi.pl
Thomas Lamprecht 1f79cc8cea api-viewer: adapt to changes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-02 16:19:34 +02:00

16 lines
282 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 "const apiSchema = " . to_json($tree, {pretty => 1, canonical => 1}) . ";\n\n";
exit(0);