From b67cfdbb523156a8f6aced31e4997f3822e52a53 Mon Sep 17 00:00:00 2001 From: Julian Raufelder Date: Mon, 13 Nov 2023 23:02:49 +0100 Subject: [PATCH] Remove unused media type and adjust api description --- .../src/main/java/org/cryptomator/hub/api/GroupsResource.java | 1 - .../src/main/java/org/cryptomator/hub/api/VaultResource.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/main/java/org/cryptomator/hub/api/GroupsResource.java b/backend/src/main/java/org/cryptomator/hub/api/GroupsResource.java index b0bb9488..32272995 100644 --- a/backend/src/main/java/org/cryptomator/hub/api/GroupsResource.java +++ b/backend/src/main/java/org/cryptomator/hub/api/GroupsResource.java @@ -14,7 +14,6 @@ import java.util.List; @Path("/groups") -@Produces(MediaType.TEXT_PLAIN) public class GroupsResource { @GET diff --git a/backend/src/main/java/org/cryptomator/hub/api/VaultResource.java b/backend/src/main/java/org/cryptomator/hub/api/VaultResource.java index 2817aea1..6dc323f3 100644 --- a/backend/src/main/java/org/cryptomator/hub/api/VaultResource.java +++ b/backend/src/main/java/org/cryptomator/hub/api/VaultResource.java @@ -223,7 +223,7 @@ private Response addAuthority(Vault vault, Authority authority, VaultAccess.Role @VaultRole(VaultAccess.Role.OWNER) // may throw 403 @Transactional @Produces(MediaType.APPLICATION_JSON) - @Operation(summary = "remove an authority from this vault", description = "revokes the given authority's access rights from this vault. If the given authority is no member, the request is a no-op.") + @Operation(summary = "remove a user or group from this vault", description = "revokes the given authority's access rights from this vault. If the given authority is no member, the request is a no-op.") @APIResponse(responseCode = "204", description = "authority removed") @APIResponse(responseCode = "403", description = "not a vault owner") public Response removeAuthority(@PathParam("vaultId") UUID vaultId, @PathParam("authorityId") @ValidId String authorityId) {