Class ForkliftController

java.lang.Object
com.v1rex.liftnexus.forklift.controller.ForkliftController

@RestController @RequestMapping("/api/v1/forklifts") @Validated public class ForkliftController extends Object
  • Constructor Details

    • ForkliftController

      public ForkliftController()
  • Method Details

    • getForkliftById

      @GetMapping("/{id}") public org.springframework.http.ResponseEntity<ForkliftResponse> getForkliftById(@PathVariable Long id)
    • findAllForklifts

      @GetMapping public org.springframework.http.ResponseEntity<org.springframework.data.domain.Page<ForkliftResponse>> findAllForklifts(@PageableDefault(size=15,sort="id",direction=ASC) org.springframework.data.domain.Pageable pageable)
    • findWithCapacity

      @GetMapping("/search") public org.springframework.http.ResponseEntity<org.springframework.data.domain.Page<ForkliftResponse>> findWithCapacity(@RequestParam(required=false) @Min(1L) @Min(1L) Integer minCapacity, @RequestParam(required=false) OperationalStatus status, @PageableDefault(size=10,sort="fleetNumber") org.springframework.data.domain.Pageable pageable)
    • createForklift

      @PostMapping public org.springframework.http.ResponseEntity<ForkliftResponse> createForklift(@RequestBody @Valid @Valid ForkliftRequest request)
    • updateForkliftLocation

      @PutMapping("/{id}/location") public org.springframework.http.ResponseEntity<ForkliftResponse> updateForkliftLocation(@PathVariable Long id, @Valid @RequestBody @Valid ForkliftLocationUpdateRequest updateRequest)
    • updateOperationalStatus

      @PatchMapping("/{id}/status") public org.springframework.http.ResponseEntity<ForkliftResponse> updateOperationalStatus(@PathVariable Long id, @RequestParam OperationalStatus status)