Skip to content

Commit

Permalink
Add documentation annotation to /v2/accounts/phone_number_discoverabi…
Browse files Browse the repository at this point in the history
…lity
  • Loading branch information
eager-signal authored Dec 27, 2024
1 parent 9121032 commit f2f5e0e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
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;

Expand Down Expand Up @@ -220,6 +219,8 @@ public AccountIdentityResponse distributePhoneNumberIdentityKeys(
@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
Expand Down

0 comments on commit f2f5e0e

Please sign in to comment.