/** * Removes the VNFPackage from the VNFPackages repository * * @param id: id of the package to delete */ @ApiOperation( value = "Remove a VNFPackage", notes = "The id of the package that has to be removed in in the URL") @RequestMapping(value = "{id}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.NO_CONTENT) public void delete( @PathVariable("id") String id, @RequestHeader(value = "project-id") String projectId) throws WrongAction { vnfPackageManagement.delete(id, projectId); } /**
/** * Removes multiple VNFPackage from the VNFPackages repository * * @param ids: The List of the VNFPackage Id to be deleted * @throws NotFoundException, WrongAction */ @ApiOperation( value = "Removing multiple VNFPackages", notes = "A list of VNF Package ids has to be provided in the Request Body") @RequestMapping( value = "/multipledelete", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE) @ResponseStatus(HttpStatus.NO_CONTENT) public void multipleDelete( @RequestBody @Valid List<String> ids, @RequestHeader(value = "project-id") String projectId) throws WrongAction { for (String id : ids) vnfPackageManagement.delete(id, projectId); }