src/main/java/com/kshrd/derphsar_api/rest/restcontroller/WishListRestController.java
/**
     * Delete a wishlist
     *
     * @param wishlistId - Id of a wishlist
     * @return - Return response message
     */
Delete a wishlist
@param wishlistId - Id of a wishlist
@return - Return response message
Delete a wishlist @param wishlistId - Id of a wishlist @return - Return response message
@DeleteMapping("/wishlists/{wishlistId}")
    @ApiOperation(value = "delete a wishlist", response = Void.class)
    public ResponseEntity<BaseApiNoPaginationResponse<Void>> deleteWishList(@PathVariable("wishlistId") String wishlistId) {
        BaseApiNoPaginationResponse<Void> response = new BaseApiNoPaginationResponse<>();
        try {
            wishListServiceImp.deleteWishList(wishlistId);
            response.setMessage(message.deleted("Wishlist"));
            response.setStatus(HttpStatus.OK);
        }catch (Exception e){
            e.printStackTrace();
        }
        response.setTime(new Timestamp(System.currentTimeMillis()));
        return ResponseEntity.ok(response);
    }
@ DeleteMapping ( "/wishlists/{wishlistId}" ) @ ApiOperation ( value = "delete a wishlist" , response = Void . class ) public ResponseEntity < BaseApiNoPaginationResponse < Void > > deleteWishList ( @ PathVariable ( "wishlistId" ) String wishlistId ) { BaseApiNoPaginationResponse < Void > response = new BaseApiNoPaginationResponse < > ( ) ; try { wishListServiceImp . deleteWishList ( wishlistId ) ; response . setMessage ( message . deleted ( "Wishlist" ) ) ; response . setStatus ( HttpStatus . OK ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } response . setTime ( new Timestamp ( System . currentTimeMillis ( ) ) ) ; return ResponseEntity . ok ( response ) ; }
Delete a wishlist
 @param wishlistId - Id of a wishlist
 @return - Return response message
Delete a wishlist @param wishlistId - Id of a wishlist @return - Return response message