source: src/main/java/edu/gjoko/schedlr/controllers/rest/NomenclatureApi.java@ 77205be

Last change on this file since 77205be was 77205be, checked in by gjoko kostadinov <gjokokostadinov@…>, 6 months ago

Add entire code

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