diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-06-21 12:26:07 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-06-25 13:50:10 +0200 |
commit | c0ca4b8cbc365df4139dff081d3fc7ecafaf40ee (patch) | |
tree | 43c0effa398504dbf996fdabfcd70497618f7cea /src/rest.h | |
parent | 51dd1c4b1a900b10b9f57a6544edc21fd2fde8d7 (diff) |
rest: add shell/list
Add GET shell/list request to obtain the list of scripts available
in /opt/opengnsys/client/shell
Resquest payload structure: no paylaod
Response's structure:
{
'scripts': ['script', 'script2']
}
Diffstat (limited to 'src/rest.h')
-rw-r--r-- | src/rest.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -105,6 +105,7 @@ enum og_rest_uri { OG_URI_WOL, OG_URI_SHELL_RUN, OG_URI_SHELL_OUTPUT, + OG_URI_SHELL_LIST, OG_URI_SESSION, OG_URI_SCOPES, OG_URI_POWEROFF, |