public Response findProduct(@Context UriInfo uriInfo, @PathParam("eshopId") Long eshopId, @PathParam("productId") Long productId) {
try {
ProductDTO product = productService.findById(uriInfo, eshopId, productId);
return Response.status(Response.Status.OK).entity(product).build();
} catch (NotExistingEntityException ex) {
throw new NotFoundException(ex.getMessage());
}
}