/accounts/self/preferences REST API

Allow clients to manage account preferences using a REST API style
invocation.  Some of these preferences are likely to be renamed or
disappear in the near future so the API is not documented.

Change-Id: I70d0981e84555ac3fa977b86b56bdb9e5289d01e
This commit is contained in:
Shawn Pearce
2013-08-22 17:41:54 -07:00
parent 973f38bc4a
commit 23e23c4464
3 changed files with 222 additions and 0 deletions

View File

@@ -59,6 +59,8 @@ public class Module extends RestApiModule {
get(ACCOUNT_KIND, "avatar.change.url").to(GetAvatarChangeUrl.class);
child(ACCOUNT_KIND, "capabilities").to(Capabilities.class);
get(ACCOUNT_KIND, "groups").to(GetGroups.class);
get(ACCOUNT_KIND, "preferences").to(GetPreferences.class);
post(ACCOUNT_KIND, "preferences").to(SetPreferences.class);
get(ACCOUNT_KIND, "preferences.diff").to(GetDiffPreferences.class);
put(ACCOUNT_KIND, "preferences.diff").to(SetDiffPreferences.class);
get(CAPABILITY_KIND).to(GetCapabilities.CheckOne.class);