]> git.proxmox.com Git - pve-docs.git/blame_incremental - api-viewer/PVEAPI.js
backup: clarify that CLI means FS-level and highlight retention-note
[pve-docs.git] / api-viewer / PVEAPI.js
... / ...
CommitLineData
1let method2cmd = {
2 GET: 'get',
3 POST: 'create',
4 PUT: 'set',
5 DELETE: 'delete'
6};
7
8function cliUsageRenderer(method, path) {
9 return `<tr><td>&nbsp;</td></td><tr><td>CLI:</td><td>pvesh ${method2cmd[method]} ${path}</td></tr></table>`;
10}