From d3a041fb90bfadd1337413007c932b2a904298fb Mon Sep 17 00:00:00 2001 From: Ian Allen Date: Wed, 3 Jan 2024 06:46:04 -0400 Subject: [PATCH] Change Delete on record/tags so that it returns OK 200. --- .../main/java/org/fao/geonet/api/records/MetadataTagApi.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/src/main/java/org/fao/geonet/api/records/MetadataTagApi.java b/services/src/main/java/org/fao/geonet/api/records/MetadataTagApi.java index fbd89f5fe10b..0795ac601ec2 100644 --- a/services/src/main/java/org/fao/geonet/api/records/MetadataTagApi.java +++ b/services/src/main/java/org/fao/geonet/api/records/MetadataTagApi.java @@ -389,9 +389,9 @@ public MetadataProcessingReport tagRecords( produces = { MediaType.APPLICATION_JSON_VALUE }) - @ResponseStatus(value = HttpStatus.NO_CONTENT) + @ResponseStatus(value = HttpStatus.OK) @ApiResponses(value = { - @ApiResponse(responseCode = "204", description = "Tag Deleted."), + @ApiResponse(responseCode = "200", description = "Tag Deleted."), @ApiResponse(responseCode = "403", description = ApiParams.API_RESPONSE_NOT_ALLOWED_ONLY_EDITOR) }) @PreAuthorize("hasAuthority('Editor')")