Class FormRecognizerController
java.lang.Object
com.markvarga21.studentmanager.controller.FormRecognizerController
@RestController
@RequestMapping("/api/v1/form")
@CrossOrigin
public class FormRecognizerController
extends Object
A controller which is used to make Form related operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<StudentDto>
getDataFromPassport
(org.springframework.web.multipart.MultipartFile passport) Extracts- and returns the data from the passport.
-
Constructor Details
-
FormRecognizerController
public FormRecognizerController()
-
-
Method Details
-
getDataFromPassport
@PostMapping("/extractData") @PreAuthorize("hasRole(\'ROLE_USER\')") public org.springframework.http.ResponseEntity<StudentDto> getDataFromPassport(@RequestParam("passport") org.springframework.web.multipart.MultipartFile passport) Extracts- and returns the data from the passport.- Parameters:
passport
- The photo of the passport.- Returns:
- The extracted
StudentDto
object.
-