Now, it's time to build our RESTful web service implementation, as follows:
- Delete the default implementation class, HelloWorldEndpoint.java, created by the Thorntail generator.
- Define a new package, named service (the fully qualified name will be com.packtpub.thorntail.footballmanagermicroservice.rest.service), where we will put the RESTful web service implementation.
- Build the API implementations by using the CDI specifications (to inject the entity manager used to manage the database connections) and JAX-RS (to implement the CRUD RESTful operations). You can follow the same steps that were implemented in the The football player microservice section.
- Remember to set the @Path of your RESTful implementation ...