pensado para devolver tres pujas
Some checks failed
Deploy Spring Boot App / build-and-deploy (push) Has been cancelled
Some checks failed
Deploy Spring Boot App / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -28,11 +28,13 @@ public class PujaController {
|
|||||||
.orElse(ResponseEntity.notFound().build());
|
.orElse(ResponseEntity.notFound().build());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//espera un id y devuelve un reporte de la mayor puja por lote
|
||||||
@GetMapping("/informe/{remateId}")
|
@GetMapping("/informe/{remateId}")
|
||||||
public List<Puja> getForInforme(@PathVariable Long remateId){
|
public List<Puja> getForInforme(@PathVariable Long remateId){
|
||||||
return pujaService.fingForReporte(remateId);
|
return pujaService.fingForReporte(remateId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//espera un id y te vuelve las ultimas n pujas (la cantidad de pujas se pasa por limite)
|
||||||
@GetMapping("/informe/npujas/{remateId}")
|
@GetMapping("/informe/npujas/{remateId}")
|
||||||
public ResponseEntity<List<Puja>> getReporteTopPujas(
|
public ResponseEntity<List<Puja>> getReporteTopPujas(
|
||||||
@PathVariable Long remateId,
|
@PathVariable Long remateId,
|
||||||
|
|||||||
Reference in New Issue
Block a user