Document GetName / GetUsername classes

Change-Id: Icef154ce49f6958d1f1d3b4db98b4b1aa49bf646
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2019-12-27 14:22:59 +01:00
committed by David Pursehouse
parent 275fe3e123
commit 03f0f9ac3b
2 changed files with 10 additions and 0 deletions

View File

@@ -20,6 +20,11 @@ import com.google.gerrit.extensions.restapi.RestReadView;
import com.google.gerrit.server.account.AccountResource;
import com.google.inject.Singleton;
/**
* REST endpoint to get the full name of an account.
*
* <p>This REST endpoint handles {@code GET /accounts/<account-identifier>/name} requests.
*/
@Singleton
public class GetName implements RestReadView<AccountResource> {
@Override

View File

@@ -22,6 +22,11 @@ import com.google.gerrit.server.account.AccountResource;
import com.google.inject.Inject;
import com.google.inject.Singleton;
/**
* REST endpoint to get the username of an account.
*
* <p>This REST endpoint handles {@code GET /accounts/<account-identifier>/username} requests.
*/
@Singleton
public class GetUsername implements RestReadView<AccountResource> {
@Inject