Build and run the service
cd microservice-speaker
mvn clean package
java -jar target/microservice-speaker-exec.jar
If you look at the output, you will find messages like the following:
INFO - REST Application: http://localhost:4040/speaker -> io.microprofile.showcase.speaker.rest.Application@68cda174 INFO - Service URI: http://localhost:4040/speaker/ -> Pojo io.microprofile.showcase.speaker.rest.ResourceSpeaker INFO - DELETE http://localhost:4040/speaker/remove/{id} -> void remove(String)
There you can see the URLs of the endpoints exposed by TomEE for your application.
To verify that everything worked fine, you can try to access http://localhost:4040/speaker
Microservice Speaker is the http://www.tomitribe.com contributed service to the MicroProfile.
This service provides a list of speakers, currently featured speakers for JavaOne 2016.
The endpoints are:
/speaker //(1) /speaker/add //(2) /speaker/remove/{id} //(3) /speaker/update //(4) /speaker/retrieve/{id} //(5) /speaker/search //(6)
-
List all
-
Add a Speaker
-
Remove a Speaker by id
-
Update an existing Speaker
-
Retrieve a known speaker
-
Search for a speaker
{
"id" : "UUID",
"nameFirst" : "John",
"nameLast" : "Doe",
"organization" : "Pearly gates",
"biography" : "A nobody",
"picture" : "http://link/to/some.jpg",
"twitterHandle" : "@JohnDoe"
}