Nuevo Endpoint que muestra una lista de explorers según su Stack #166
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
filterByStack
en la clase ExplorerService./lib/services/ExplorerServices.js
.Se implementa el método
getExplorersByStack
en la clase ExplorerController para usar la clase anterior.2.1 Se crea la prueba de unidad para la función
getExplorersByStack
en el archivo./test/ExplorerController.test.js
.2.2 Se Agrega la función
getExplorersByStack
en la claseExplorerController.js
Se crea el EndPoint
/v1/explorers/stack/:mission
el 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