]>
Commit | Line | Data |
---|---|---|
04222b44 | 1 | #!/usr/bin/perl |
61568a65 DM |
2 | |
3 | use strict; | |
04222b44 DM |
4 | use warnings; |
5 | ||
61568a65 DM |
6 | use PVE::RESTHandler; |
7 | use PVE::API2; | |
8 | use JSON; | |
9 | ||
61568a65 | 10 | |
04222b44 | 11 | my $tree = PVE::RESTHandler::api_dump_remove_refs(PVE::RESTHandler::api_dump('PVE::API2')); |
61568a65 | 12 | |
1f79cc8c | 13 | print "const apiSchema = " . to_json($tree, {pretty => 1, canonical => 1}) . ";\n\n"; |
61568a65 DM |
14 | |
15 | exit(0); |