src/main/java/com/kshrd/derphsar_api/rest/restcontroller/ShopRestController.java
/**
     * Delete a shop
     *
     * @param shopId - Id of a shop
     * @return - Return response message
     */
Delete a shop
@param shopId - Id of a shop
@return - Return response message
Delete a shop @param shopId - Id of a shop @return - Return response message
@DeleteMapping("/shops/{shopId}")
    @ApiOperation(value = "delete a shop", response = Void.class)
    public ResponseEntity<BaseApiNoPaginationResponse<Void>> deleteShop(@PathVariable("shopId") String shopId){
        BaseApiNoPaginationResponse<Void> response = new BaseApiNoPaginationResponse<>();
        ShopDto shopDto = shopServiceImp.findById(shopId);
        if(shopDto != null)
        {
            shopServiceImp.deleteShop(shopId);
            response.setMessage(message.deleted("Shop"));
            response.setStatus(HttpStatus.OK);
        }else {
            response.setMessage(message.deleteError("Shop"));
            response.setStatus(HttpStatus.BAD_REQUEST);
        }
        response.setTime(new Timestamp(System.currentTimeMillis()));
        return ResponseEntity.ok(response);
    }
@ DeleteMapping ( "/shops/{shopId}" ) @ ApiOperation ( value = "delete a shop" , response = Void . class ) public ResponseEntity < BaseApiNoPaginationResponse < Void > > deleteShop ( @ PathVariable ( "shopId" ) String shopId ) { BaseApiNoPaginationResponse < Void > response = new BaseApiNoPaginationResponse < > ( ) ; ShopDto shopDto = shopServiceImp . findById ( shopId ) ; if ( shopDto != null ) { shopServiceImp . deleteShop ( shopId ) ; response . setMessage ( message . deleted ( "Shop" ) ) ; response . setStatus ( HttpStatus . OK ) ; } else { response . setMessage ( message . deleteError ( "Shop" ) ) ; response . setStatus ( HttpStatus . BAD_REQUEST ) ; } response . setTime ( new Timestamp ( System . currentTimeMillis ( ) ) ) ; return ResponseEntity . ok ( response ) ; }
Delete a shop
 @param shopId - Id of a shop
 @return - Return response message
Delete a shop @param shopId - Id of a shop @return - Return response message