source: src/main/java/edu/gjoko/schedlr/controllers/rest/NomenclaturesController.java@ a436340

Last change on this file since a436340 was a436340, checked in by Gjoko Kostadinov <gjoko.kostadinov@…>, 17 months ago

Adding customer registration

  • Property mode set to 100644
File size: 777 bytes
Line 
1package edu.gjoko.schedlr.controllers.rest;
2
3import edu.gjoko.schedlr.entity.BusinessType;
4import edu.gjoko.schedlr.repositories.BusinessTypeRepository;
5import edu.gjoko.schedlr.services.NomenclaturesService;
6import lombok.AllArgsConstructor;
7import org.springframework.web.bind.annotation.GetMapping;
8import org.springframework.web.bind.annotation.RequestMapping;
9import org.springframework.web.bind.annotation.RestController;
10
11import java.util.List;
12
13@RestController
14@RequestMapping("api/nomenclatures")
15@AllArgsConstructor
16public class NomenclaturesController {
17
18 private final NomenclaturesService nomenclaturesService;
19 @GetMapping( "/businessTypes")
20 public List<BusinessType> getBusinessTypes() {
21 return nomenclaturesService.getBusinessTypes();
22 }
23}
Note: See TracBrowser for help on using the repository browser.