Last change
on this file since 8bcd64c 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 | |
---|
1 | package edu.gjoko.schedlr.controllers.rest;
|
---|
2 |
|
---|
3 | import edu.gjoko.schedlr.entity.BusinessType;
|
---|
4 | import edu.gjoko.schedlr.repositories.BusinessTypeRepository;
|
---|
5 | import edu.gjoko.schedlr.services.NomenclaturesService;
|
---|
6 | import lombok.AllArgsConstructor;
|
---|
7 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
8 | import org.springframework.web.bind.annotation.RequestMapping;
|
---|
9 | import org.springframework.web.bind.annotation.RestController;
|
---|
10 |
|
---|
11 | import java.util.List;
|
---|
12 |
|
---|
13 | @RestController
|
---|
14 | @RequestMapping("api/nomenclatures")
|
---|
15 | @AllArgsConstructor
|
---|
16 | public 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.