From f2f5e0e26f2b70c2dcf859d81b22a89225f5eee0 Mon Sep 17 00:00:00 2001 From: Chris Eager <79161849+eager-signal@users.noreply.github.com> Date: Fri, 27 Dec 2024 14:24:00 -0600 Subject: [PATCH] Add documentation annotation to /v2/accounts/phone_number_discoverability --- .../textsecuregcm/controllers/AccountControllerV2.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountControllerV2.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountControllerV2.java index 59260032e..3e797b1dc 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountControllerV2.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountControllerV2.java @@ -54,7 +54,6 @@ import org.whispersystems.textsecuregcm.metrics.UserAgentTagUtil; import org.whispersystems.textsecuregcm.storage.Account; import org.whispersystems.textsecuregcm.storage.AccountsManager; import org.whispersystems.textsecuregcm.storage.ChangeNumberManager; -import org.whispersystems.textsecuregcm.storage.DeviceCapability; import org.whispersystems.websocket.auth.Mutable; import org.whispersystems.websocket.auth.ReadOnly; @@ -220,6 +219,8 @@ public class AccountControllerV2 { @Path("/phone_number_discoverability") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) + @Operation(summary = "Sets whether the account should be discoverable by phone number in the directory.") + @ApiResponse(responseCode = "204", description = "The setting was successfully updated.") public void setPhoneNumberDiscoverability( @Mutable @Auth AuthenticatedDevice auth, @NotNull @Valid PhoneNumberDiscoverabilityRequest phoneNumberDiscoverability