source: src/main/java/mk/ukim/finki/eglas/controllers/TestController.java@ ac151d1

main
Last change on this file since ac151d1 was ac151d1, checked in by David <darsov2@…>, 11 days ago

initial

  • Property mode set to 100644
File size: 716 bytes
Line 
1package mk.ukim.finki.eglas.controllers;
2
3import mk.ukim.finki.eglas.services.TestProcedures;
4import org.springframework.web.bind.annotation.GetMapping;
5import org.springframework.web.bind.annotation.PathVariable;
6import org.springframework.web.bind.annotation.RequestMapping;
7import org.springframework.web.bind.annotation.RestController;
8
9@RestController
10@RequestMapping("/test")
11public 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.