GUACAMOLE-926: Success / Error handling in REST API.

This commit is contained in:
James Muehlner
2023-01-19 00:45:38 +00:00
parent 65074385e1
commit 7d1d5cdf13
2 changed files with 5 additions and 1 deletions

View File

@@ -202,6 +202,8 @@ public class APIError {
this.translatableMessage = translatable.getTranslatableMessage(); this.translatableMessage = translatable.getTranslatableMessage();
} }
// TODO: Handle patch exceptions, need a bunch of JSON saying which things failed
// Use generic translation string if message is not translated // Use generic translation string if message is not translated
else else
this.translatableMessage = new TranslatableMessage(UNTRANSLATED_MESSAGE_KEY, this.translatableMessage = new TranslatableMessage(UNTRANSLATED_MESSAGE_KEY,

View File

@@ -564,7 +564,9 @@ public abstract class DirectoryResource<InternalType extends Identifiable, Exter
}); });
// TODO: JSON response with failures or success // TODO: JSON response indicating which things were changed
// NOTE: IDs are assigned at creation time so a user of the API
// needs this response if they want to be able to actually use them
} }