class VulnerabilityController implements Constants {

	@RequestMapping(path = "/v1/vulnerabilities/trend/notes/{noteId}", method = RequestMethod.DELETE)
	public ResponseEntity<Object> deleteTrendAnnotation(@PathVariable(name = "noteId", required = true) String noteId) {

		if (vulnerabilityService.deleteTrendAnnotation(noteId)) {
			return ResponseUtils.buildSucessResponse("Annotation Deleted");
		} else {
			return ResponseUtils.buildFailureResponse(new Exception("Annotation deletion failed"));
		}
	}

}