Nuevo Endpoint que muestra una lista de explorers según su Stack#166
Open
MoisesMendozaS01 wants to merge 8 commits intovisualpartnership:masterfrom
Open
Nuevo Endpoint que muestra una lista de explorers según su Stack#166MoisesMendozaS01 wants to merge 8 commits intovisualpartnership:masterfrom
MoisesMendozaS01 wants to merge 8 commits intovisualpartnership:masterfrom
Conversation
added 8 commits
May 18, 2022 14:35
…k para la clase explorerService
…stack de la clase ExplorerController
… de explorers por Stack
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.
Contribución Open Source
Requerimiento:
Crea un endpoint nuevo que regrese toda la lista de explorers filtrados por un stack.
localhost:3000/v1/explorers/stack/javascript.Response: Todos los explorers que tengan en stack el valor recibido en la url: javascript. (este valor debe ser dinámico)
1.1 Primero se creó una prueba de unidad de la función
./test/services/ExplorerService.test.js.1.2 Se crea el método

filterByStacken la clase ExplorerService./lib/services/ExplorerServices.js.Se implementa el método


getExplorersByStacken la clase ExplorerController para usar la clase anterior.2.1 Se crea la prueba de unidad para la función
getExplorersByStacken el archivo./test/ExplorerController.test.js.2.2 Se Agrega la función
getExplorersByStacken la claseExplorerController.jsSe crea el EndPoint
.
/v1/explorers/stack/:missionel cual recibe el nombre del stack para filtrar y llama a la funcióngetExplorersByStack.Finalmente se realizan las correcciones de texto con la dependencia linter para tener mejor presentación en el código