Skip to content

Commit

Permalink
* Test funcionando en conjunto , el test de procesarArchivo falla al …
Browse files Browse the repository at this point in the history
…ejecutarlo en solitario
  • Loading branch information
ripper2hl committed Apr 11, 2024
1 parent 8d9dd47 commit 5739a9b
Show file tree
Hide file tree
Showing 5 changed files with 451 additions and 434 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,12 @@ public Colonia actualizar(@Validated @RequestBody Colonia entity) {
public Colonia borrar(@PathVariable Integer id) {
return coloniaService.borrar(id.longValue());
}

@PostMapping(value = "/carga", produces = "application/json; charset=UTF-8", consumes = "multipart/form-data;charset=UTF-8")
public boolean cargaMasiva( @RequestPart("file") MultipartFile file ) throws IOException {
return coloniaService.cargaMasiva( file );
}

@PatchMapping(value = "/actualizacion", produces = "application/json; charset=UTF-8", consumes = "multipart/form-data;charset=UTF-8")
public boolean actualizacionMasiva( @RequestPart("file") MultipartFile file ) throws IOException {
return coloniaService.actualizacionMasiva( file );
}

@GetMapping(value = "/municipio/{id}", params = {"page", "size"}, produces = "application/json")
public Page<Colonia> findByEstadoId(@PathVariable Integer id, @RequestParam int page, @RequestParam int size) {
return coloniaService.findByMunicipioId(id, page, size);
}

@GetMapping(value = "/index")
public Boolean index() throws InterruptedException {
coloniaService.indexDb();
return true;
}


@GetMapping(value = "/search")
public List<Colonia> search(Colonia colonia) {
return coloniaService.search(colonia);
Expand Down
Loading

0 comments on commit 5739a9b

Please sign in to comment.