añadir endpoint para hacer search por centro y no solo por cedula #5#15
Open
aaronjerez1 wants to merge 2 commits intomainfrom
Open
añadir endpoint para hacer search por centro y no solo por cedula #5#15aaronjerez1 wants to merge 2 commits intomainfrom
aaronjerez1 wants to merge 2 commits intomainfrom
Conversation
…ctas/centros and tested
Owner
|
gracias! lo reviso hoy despues del trabajo |
Collaborator
Author
|
Hola! Algun update? |
Owner
|
perdon, he estado super ocupado y viajando. mañana justo me desocupo y le echo un vistazo! |
|
Aun disponible? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema:
El usuario no podia acceder las actas con el numero de centro
Solucion:
Se creo un end point con parametro "centro" para acceder a esta informacion.
Se agrego una nueva tabla "actas_mcm" de donde ultimadamente se saca esta informacion.
Tested:
Localmente, al llamar al end point http://localhost:8080/actas/centros?centro=10113042
La estructura de la respuesta es la siguiente:
{"centro":10113042,"estado":"DTTO. CAPITAL","municipio":"MP. BLVNO LIBERTADOR","parroquia":"PQ. EL RECREO","total_validos":736,"total_nulos":0,"total_edmundo_gonzalez":492,"total_nicolas_maduro":213,"total_luis_martinez":10,"total_javier_bertucci":0,"total_jose_brito":1,"total_antonio_ecarri":4,"total_claudio_fermin":3,"total_daniel_ceballos":1,"total_enrique_marquez":2,"total_benjammin_rausseo":10,"actas":[{"mesa":1,"votos_validos":364,"votos_nulos":0,"edmundo_gonzalez":232,"nicolas_maduro":120,"luis_martinez":5,"javier_bertucci":0,"jose_brito":0,"antonio_ecarri":3,"claudio_fermin":1,"daniel_ceballos":1,"enrique_marquez":0,"benjammin_rausseo":2,"url":"https://static.resultadosconvzla.com/408106_387187_0096Acta0096.jpg"},{"mesa":2,"votos_validos":372,"votos_nulos":0,"edmundo_gonzalez":260,"nicolas_maduro":93,"luis_martinez":5,"javier_bertucci":0,"jose_brito":1,"antonio_ecarri":1,"claudio_fermin":2,"daniel_ceballos":0,"enrique_marquez":2,"benjammin_rausseo":8,"url":"https://static.resultadosconvzla.com/408106_660117_0097Acta0097.jpg"}]}