src/main/java/com/kshrd/derphsar_api/rest/restcontroller/ShopRestController.java
/**
     * Get a shop
     *
     * @param shopId - Id of a shop
     * @return - Return response message
     */
Get a shop
@param shopId - Id of a shop
@return - Return response message
Get a shop @param shopId - Id of a shop @return - Return response message
@GetMapping("/shop/{shopId}")
    @ApiOperation(value = "search a shop by shop id", response = ShopResponseModel.class)
    public ResponseEntity<BaseApiNoPaginationResponse<List<ShopResponseModel>>> findById(@PathVariable("shopId") String shopId){
        ModelMapper mapper = new ModelMapper();
        BaseApiNoPaginationResponse<List<ShopResponseModel>> response = new BaseApiNoPaginationResponse<>();
        List<ShopResponseModel> shops = new ArrayList<>();
        try {
            ShopDto shopDto = shopServiceImp.findById(shopId);
            shops.add(mapper.map(shopDto, ShopResponseModel.class));
            response.setMessage(message.selectedOne("Shop"));
            response.setData(shops);
            response.setStatus(HttpStatus.FOUND);
        }catch (Exception e){
            e.printStackTrace();
        }
        response.setTime(new Timestamp(System.currentTimeMillis()));
        return ResponseEntity.ok(response);
    }
@ GetMapping ( "/shop/{shopId}" ) @ ApiOperation ( value = "search a shop by shop id" , response = ShopResponseModel . class ) public ResponseEntity < BaseApiNoPaginationResponse < List < ShopResponseModel > > > findById ( @ PathVariable ( "shopId" ) String shopId ) { ModelMapper mapper = new ModelMapper ( ) ; BaseApiNoPaginationResponse < List < ShopResponseModel > > response = new BaseApiNoPaginationResponse < > ( ) ; List < ShopResponseModel > shops = new ArrayList < > ( ) ; try { ShopDto shopDto = shopServiceImp . findById ( shopId ) ; shops . add ( mapper . map ( shopDto , ShopResponseModel . class ) ) ; response . setMessage ( message . selectedOne ( "Shop" ) ) ; response . setData ( shops ) ; response . setStatus ( HttpStatus . FOUND ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } response . setTime ( new Timestamp ( System . currentTimeMillis ( ) ) ) ; return ResponseEntity . ok ( response ) ; }
Get a shop
 @param shopId - Id of a shop
 @return - Return response message
Get a shop @param shopId - Id of a shop @return - Return response message