gorskov_evgeniu_lab_3 ready
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package org.example.sspr3Evgeni;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/matrix")
|
||||
@RequiredArgsConstructor
|
||||
public class MatrixController {
|
||||
|
||||
private final MatrixService matrixService;
|
||||
|
||||
@PostMapping("/findMaxAboveDiagonal")
|
||||
public ResponseEntity<ProcessingResult> findMaxAboveDiagonal(@RequestParam int size) {
|
||||
ProcessingResult result = matrixService.findMaxAboveDiagonal(size);
|
||||
return ResponseEntity.ok(result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user