Class ReposicionController
java.lang.Object
com.deusto.coffeestack.controller.ReposicionController
Endpoints para consultar sugerencias de reposición por insumo.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<SugerenciaReposicionResponse> listar(int ventana)
-
Constructor Details
-
ReposicionController
-
-
Method Details
-
listar
@GetMapping("/sugerencias-reposicion") @PreAuthorize("hasAnyRole(\'PROPIETARIO\',\'ROOT\')") public List<SugerenciaReposicionResponse> listar(@RequestParam(defaultValue="30") int ventana) -
detalle
@GetMapping("/{id}/sugerencia-reposicion") @PreAuthorize("hasAnyRole(\'PROPIETARIO\',\'ROOT\')") public org.springframework.http.ResponseEntity<SugerenciaReposicionResponse> detalle(@PathVariable("id") Long id, @RequestParam(defaultValue="30") int ventana)
-