We have installed and configured everything that's necessary to create our microservice for the management of the registry of players. Now, it's time to write the code that's needed to expose our microservice APIs.
We will use the Thorntail project generator utility, https://thorntail.io/generator/, in order to get a project skeleton to work on. Our microservice, as described previously, will have to display APIs that allow us to perform CRUD operations. Java EE and Jakarta EE have specifications for implementing these features, as follows:
- JAX-RS
- CDI
- JPA
- JTA
We will use com.packtpub.thorntail as the Maven Group ID of the project, and football-player-microservice as the Artifact ID:
- Set the Group ID, Artifact ID, ...