]>
git.proxmox.com Git - pmg-api.git/blob - PMG/API2.pm
9 use PMG
::API2
::AccessControl
;
13 use base
qw(PVE::RESTHandler);
15 __PACKAGE__-
>register_method ({
16 subclass
=> "PMG::API2::Nodes",
20 __PACKAGE__-
>register_method ({
21 subclass
=> "PMG::API2::AccessControl",
25 __PACKAGE__-
>register_method ({
29 permissions
=> { user
=> 'all' },
30 description
=> "Directory index.",
32 additionalProperties
=> 0,
40 subdir
=> { type
=> 'string' },
43 links
=> [ { rel
=> 'child', href
=> "{subdir}" } ],
46 my ($resp, $param) = @_;
49 { subdir
=> 'nodes' },
50 { subdir
=> 'version' },
57 __PACKAGE__-
>register_method ({
61 permissions
=> { user
=> 'all' },
62 description
=> "API version details.",
64 additionalProperties
=> 0,
70 version
=> { type
=> 'string' },
71 release
=> { type
=> 'string' },
72 repoid
=> { type
=> 'string' },
78 return PMG
::pmgcfg
::version_info
();