diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-05-23 16:20:41 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-05-30 11:16:25 +0200 |
commit | 111f077d17737ffa7367a7a4af7b32336d15e05e (patch) | |
tree | 3ca939e07c7f579022aa2bee1efb63902f1d62db /sources/ogAdmServer.cpp | |
parent | 6666aba8b7063d4475636336d7798a30c26dde92 (diff) |
rest: add cache/delete
Add POST cache/delete request to request deletion of images in
the client's cache.
Resquest payload structure:
{
'clients': ['10.141.10.21', '10.141.10.22']
'images': ['windows.img', 'linux.img']
}
The clients listed in the 'clients' field will receive a
cache/delete POST request with the 'clients' field removed and
only containing 'images' from the payload received by the server.
Each client will try to delete as many images as available in
their cache from the list of files in 'images'.
The clients will give response with the contents of the cache so
the server can update the database.
Diffstat (limited to 'sources/ogAdmServer.cpp')
0 files changed, 0 insertions, 0 deletions