Domanda di colloquio di PlainID

Write an REST API for Pokemon battles. Add unit tests as well. Required tech stack to use: Java 8, Spring Boot, Spring Boot test suite, H2 in memory DB. Entities to implement: Pokemon, Trainer and Battle. (entities need to be stored in the database) Operations to implement: 1) Build a request call for Battle between 2 trainers and return the winner name. 2) Build a request call to get Trainer data. 3) Build a request call to catch Pokemon by a Trainer and return the bag after the catch. 4) Build a request call to get all the trainers’ data sorted by level.