From d24bd041c0149dd80bd5553f5067d4f20fb4f426 Mon Sep 17 00:00:00 2001 From: sudeshnas93 Date: Thu, 13 Jun 2024 23:22:42 +0530 Subject: [PATCH] [WFLY-19345] some changes in microprofile-openapi --- .../microprofile/openapi/RootResource.java | 17 +++++++++++++++++ microprofile-openapi/src/main/webapp/index.html | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 microprofile-openapi/src/main/java/org/wildfly/quickstart/microprofile/openapi/RootResource.java 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 @@
-

Hello There! Welcome to JBoss!

+

Hello There! Welcome to WildFly!

The microprofile-openapi application has been deployed and running successfully.