in services/application-services/product-service/src/main/java/com/amazonaws/saas/eks/controller/ProductController.java [87:103]
public Product getProductById(@PathVariable("productId") String productId, HttpServletRequest request) {
String tenantId = null;
Product product = null;
try {
tenantId = tokenManager.getTenantId(request);
if (tenantId != null && !tenantId.isEmpty()) {
product = productService.getProductById(productId, tenantId);
return product;
}
} catch (Exception e) {
logger.error("TenantId: " + tenantId + "-get product by ID failed: ", e);
}
return product;
}