Skip to content

Commit

Permalink
Remove unused media type and adjust api description
Browse files Browse the repository at this point in the history
  • Loading branch information
SailReal committed Nov 13, 2023
1 parent dfd7ebd commit b67cfdb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import java.util.List;

@Path("/groups")
@Produces(MediaType.TEXT_PLAIN)
public class GroupsResource {

@GET
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b67cfdb

Please sign in to comment.