Java 11 project with Spring Boot, this project contains:
- Rest template
- Redis Cache
- Unit Test
- Integration Test
- Swagger Documentation
When you run the app you can access to Swagger documentation in the next path: /swagger-ui.html.
docker run --name redis-t -d -p 6379:6379 redis:6.0
-
Swagger UI -> http://localhost:8080/swagger-ui.html
-
Spring Boot actuator endpoints:
-
The 5 heaviest Pokémons. http://localhost:8080/api/v1/pokedemo?sort=height&sortOrder=desc&size=5
-
The 5 highest Pokémons. http://localhost:8080/api/v1/pokedemo?sort=weight&sortOrder=desc&size=5
-
The 5 Pokémons with more base experience. http://localhost:8080/api/v1/pokedemo?sort=baseExperience&sortOrder=desc&size=5