This example application was adapted from Stéphane Nicoll's actuator example and demonstrates how to create a user-defined endpoint.
The application can be built with Maven by issuing the following commands:
mvn clean package
java -jar target/actuator-0.0.1.jar
The application can be built with Gradle by issuing the following commands:
gradle clean build
java -jar build/libs/actuator-0.0.1.jar
Once running, open your browser:
localhost:8080/application
will display all the endpoints.
localhost:8080/application/person
will display all the names from the user-defined endpoint.
localhost:8080/application/person/mike
will display only my name.
The other URL options are:
localhost:8080/application/person/rowena
localhost:8080/application/person/barry
Please don't hesitate to contact me at [email protected] with any questions.