Last change
on this file since 950fa0d was 950fa0d, checked in by Gjoko Kostadinov <gjoko.kostadinov@…>, 13 months ago |
Periodic update
|
-
Property mode
set to
100644
|
File size:
714 bytes
|
Rev | Line | |
---|
[a436340] | 1 | package edu.gjoko.schedlr.controllers.rest;
|
---|
| 2 |
|
---|
| 3 | import edu.gjoko.schedlr.entity.BusinessType;
|
---|
| 4 | import edu.gjoko.schedlr.services.NomenclaturesService;
|
---|
| 5 | import lombok.AllArgsConstructor;
|
---|
| 6 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
| 7 | import org.springframework.web.bind.annotation.RequestMapping;
|
---|
| 8 | import org.springframework.web.bind.annotation.RestController;
|
---|
| 9 |
|
---|
| 10 | import java.util.List;
|
---|
| 11 |
|
---|
| 12 | @RestController
|
---|
| 13 | @RequestMapping("api/nomenclatures")
|
---|
| 14 | @AllArgsConstructor
|
---|
[950fa0d] | 15 | public class NomenclatureController {
|
---|
[a436340] | 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.