Class ProductTypeController
java.lang.Object
tech.corefinance.product.controller.ProductTypeController
- All Implemented Interfaces:
tech.corefinance.common.controller.CrudController<String,ProductType, ProductType>
@RestController
@RequestMapping("/product-types")
@ControllerManagedResource("producttype")
public class ProductTypeController
extends Object
implements tech.corefinance.common.controller.CrudController<String,ProductType,ProductType>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontech.corefinance.common.service.CommonService<String, ProductType, ?> tech.corefinance.common.dto.GeneralApiResponse<List<ProductType>> loadByType(ProductCategoryType categoryType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tech.corefinance.common.controller.CrudController
createEntity, createOrUpdate, delete, getEntityConverter, search, updateEntity, viewDetails
-
Constructor Details
-
ProductTypeController
public ProductTypeController()
-
-
Method Details
-
getHandlingService
- Specified by:
getHandlingServicein interfacetech.corefinance.common.controller.CrudController<String,ProductType, ProductType>
-
loadByType
@GetMapping("/") public tech.corefinance.common.dto.GeneralApiResponse<List<ProductType>> loadByType(@RequestParam("type") ProductCategoryType categoryType)
-