To complete the Backend Knowledge test, you should complete the following goals.
Requirement | PokeAPI JSON Field |
---|---|
Show in JSON format via HTTP the 5 heaviest Pokémons. | "weight" |
Show in JSON format via HTTP the 5 highest Pokémons. | "height" |
Show in JSON format via HTTP the 5 Pokémons with more base experience. | "base_experience" |
To complete this test, you must use the following prerequisites:
-
Use Java + SpringBoot
-
Unit Tests
-
Use PokéAPI (https://pokeapi.co/api/v2)
-
We only want Pokémons of “Red Version”. You are able to find this information one the section “game_indices” for each Pokémon:
-
Version_name: red
-
Version_url : https://pokeapi.co/api/v2/version/1
-
Our Recommendations:
· Project Lombok
· Use H2database if you want/need to store some information in a database instead of using an external DB.
· Spring initializr: https://start.spring.io/. |
End points list:
- http://localhost:8080/api/highest
- http://localhost:8080/api/heaviest
- http://localhost:8080/api/baseExperience
Local H2 Database:
Java Version:
- 1.8
Maven dependencies used:
- log4j
- junit
- lombok
- JPA (Repositories)
- Spring-boot (Web + test)