Class ReposicionController

java.lang.Object
com.deusto.coffeestack.controller.ReposicionController

@RestController @RequestMapping("/api/insumos") public class ReposicionController extends Object
Endpoints para consultar sugerencias de reposición por insumo.
  • Constructor Details

    • ReposicionController

      public ReposicionController(ReposicionService reposicionService)
  • 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)