Skip to content

Commit

Permalink
CST-5249_suggestion useless modification rollbacked on RestResourceCo…
Browse files Browse the repository at this point in the history
…ntroller.java
  • Loading branch information
frabacche committed Feb 9, 2024
1 parent 27dc6b2 commit 9e2f69f
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,13 @@ public ResponseEntity<RepresentationModel<?>> delete(HttpServletRequest request,
return deleteInternal(apiCategory, model, uuid);
}

@RequestMapping(method = RequestMethod.DELETE, value = REGEX_REQUESTMAPPING_IDENTIFIER_AS_STRING_VERSION_STRONG)
public ResponseEntity<RepresentationModel<?>> delete(HttpServletRequest request, @PathVariable String apiCategory,
@PathVariable String model, @PathVariable String id)
throws HttpRequestMethodNotSupportedException {
return deleteInternal(apiCategory, model, id);
}

/**
* Internal method to delete resource.
*
Expand All @@ -1135,13 +1142,6 @@ private <ID extends Serializable> ResponseEntity<RepresentationModel<?>> deleteI
return ControllerUtils.toEmptyResponse(HttpStatus.NO_CONTENT);
}

@RequestMapping(method = RequestMethod.DELETE, value = REGEX_REQUESTMAPPING_IDENTIFIER_AS_STRING_VERSION_STRONG)
public ResponseEntity<RepresentationModel<?>> delete(HttpServletRequest request, @PathVariable String apiCategory,
@PathVariable String model, @PathVariable String id)
throws HttpRequestMethodNotSupportedException {
return deleteInternal(apiCategory, model, id);
}

/**
* Execute a PUT request for an entity with id of type UUID;
*
Expand Down

0 comments on commit 9e2f69f

Please sign in to comment.