GUACAMOLE-926: Success / Error handling in REST API.
This commit is contained in:
1 parent
65074385e1
commit
7d1d5cdf13
2 files changed
+5
-1
No files matched your search
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user