diff --git a/microprofile-openapi/src/main/java/org/wildfly/quickstart/microprofile/openapi/RootResource.java b/microprofile-openapi/src/main/java/org/wildfly/quickstart/microprofile/openapi/RootResource.java new file mode 100644 index 0000000000..8e02dbd6ca --- /dev/null +++ b/microprofile-openapi/src/main/java/org/wildfly/quickstart/microprofile/openapi/RootResource.java @@ -0,0 +1,17 @@ +package org.wildfly.quickstart.microprofile.openapi; + +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; + +@Path("/") +public class RootResource { + + @GET + @Produces(MediaType.TEXT_PLAIN) + public String getRootResponse() { + return "MicroProfile OpenAPI quickstart deployed successfully. You can find the available operations in the included README file."; + } +} + diff --git a/microprofile-openapi/src/main/webapp/index.html b/microprofile-openapi/src/main/webapp/index.html index deba58c6b3..d4c861ebe1 100644 --- a/microprofile-openapi/src/main/webapp/index.html +++ b/microprofile-openapi/src/main/webapp/index.html @@ -22,7 +22,7 @@