package edu.gjoko.schedlr.controllers.rest; import edu.gjoko.schedlr.entity.BusinessType; import edu.gjoko.schedlr.services.NomenclaturesService; import lombok.AllArgsConstructor; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController @RequestMapping("api/nomenclatures") @AllArgsConstructor public class NomenclatureController { private final NomenclaturesService nomenclaturesService; @GetMapping( "/businessTypes") public List getBusinessTypes() { return nomenclaturesService.getBusinessTypes(); } }