Document GetAvatar / GetAvatarChangeUrl classes

Change-Id: I2e4ca0a5dcdcd71becf5df9572376d8040d1c176
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2019-12-27 13:29:38 +01:00
parent d3f8eaad1e
commit f6f43ded4e
2 changed files with 16 additions and 0 deletions

View File

@@ -26,6 +26,13 @@ import com.google.inject.Inject;
import java.util.concurrent.TimeUnit;
import org.kohsuke.args4j.Option;
/**
* REST endpoint to get the avatar image of an account.
*
* <p>This REST endpoint handles {@code GET /accounts/<account-identifier>/avatar} requests.
*
* <p>Avatar images are only available if an {@link AvatarProvider} plugin is installed.
*/
public class GetAvatar implements RestReadView<AccountResource> {
private final DynamicItem<AvatarProvider> avatarProvider;

View File

@@ -24,6 +24,15 @@ import com.google.gerrit.server.avatar.AvatarProvider;
import com.google.inject.Inject;
import com.google.inject.Singleton;
/**
* REST endpoint to get the URL for changing the avatar image of an account.
*
* <p>This REST endpoint handles {@code GET /accounts/<account-identifier>/avatar.change.url}
* requests.
*
* <p>Avatar images are only available if an {@link AvatarProvider} plugin is installed. Not all
* avatar plugins provide a URL for changing avatar images.
*/
@Singleton
public class GetAvatarChangeUrl implements RestReadView<AccountResource> {
private final DynamicItem<AvatarProvider> avatarProvider;