/** * Delete the specified issue link type. * * @response.representation.204.qname * issueLinkType * * @response.representation.404.doc * Returned if issue linking is disabled or no issue link type with the given id exists. * * @response.represenation.400.doc * Returned if the supplied id is not a number. * * @return Returns NO_CONTENT if successful. */ @DELETE @Path ("/{issueLinkTypeId}") public Response deleteIssueLinkType(@PathParam ("issueLinkTypeId") final String issueLinkTypeIdString) { final IssueLinkType linkType = findLinkType(issueLinkTypeIdString); ServiceOutcome<IssueLinkType> outcome = issueLinkTypeService.deleteIssueLinkType(authenticationContext.getUser(), linkType); if (outcome.isValid()) { return Response.noContent().cacheControl(never()).build(); } else { throw new RESTException(ErrorCollection.of(outcome.getErrorCollection())); } }