main
Line | |
---|
1 | package mk.ukim.finki.eglas.controllers;
|
---|
2 |
|
---|
3 | import mk.ukim.finki.eglas.services.TestProcedures;
|
---|
4 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
5 | import org.springframework.web.bind.annotation.PathVariable;
|
---|
6 | import org.springframework.web.bind.annotation.RequestMapping;
|
---|
7 | import org.springframework.web.bind.annotation.RestController;
|
---|
8 |
|
---|
9 | @RestController
|
---|
10 | @RequestMapping("/test")
|
---|
11 | public class TestController {
|
---|
12 |
|
---|
13 | private final TestProcedures testProcedures;
|
---|
14 |
|
---|
15 | public TestController(TestProcedures testProcedures) {
|
---|
16 | this.testProcedures = testProcedures;
|
---|
17 | }
|
---|
18 |
|
---|
19 | @GetMapping("{id}")
|
---|
20 | public Double test(@PathVariable Long id) {
|
---|
21 | return testProcedures.getTurnoutByRealizationId(id);
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.