Class CameraPageController
java.lang.Object
org.tavall.couriers.web.view.controller.camera.CameraPageController
@Controller
@PreAuthorize("hasAnyRole('MERCHANT','DRIVER','SUPERUSER')")
public class CameraPageController
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> closeSession(String scanSessionId) org.springframework.http.ResponseEntity<ScanResponse> intakeStatus(String scanSessionId) org.springframework.http.ResponseEntity<ScanResponse> receiveFrame(org.springframework.web.multipart.MultipartFile image, String scanMode, String routeId, String scanSessionId, org.springframework.security.core.Authentication authentication)
-
Constructor Details
-
CameraPageController
-
-
Method Details
-
receiveFrame
@PostMapping("/internal/api/v1/stream/frame") public org.springframework.http.ResponseEntity<ScanResponse> receiveFrame(@RequestParam("image") org.springframework.web.multipart.MultipartFile image, @RequestParam(value="scanMode",required=false) String scanMode, @RequestParam(value="routeId",required=false) String routeId, @RequestParam(value="scanSessionId",required=false) String scanSessionId, org.springframework.security.core.Authentication authentication) -
closeSession
-
intakeStatus
@GetMapping("/internal/api/v1/stream/intake/status") public org.springframework.http.ResponseEntity<ScanResponse> intakeStatus(@RequestParam(value="scanSessionId",required=false) String scanSessionId)
-