diff --git a/microprofile-openapi/README.adoc b/microprofile-openapi/README.adoc index be889b0d68..706c55b407 100644 --- a/microprofile-openapi/README.adoc +++ b/microprofile-openapi/README.adoc @@ -515,7 +515,7 @@ paths: text/plain: schema: type: string - /fruit: + /rest/fruit: get: responses: "200": diff --git a/microprofile-openapi/src/main/java/org/wildfly/quickstart/microprofile/openapi/InventoryApplication.java b/microprofile-openapi/src/main/java/org/wildfly/quickstart/microprofile/openapi/InventoryApplication.java index f77231e0ad..c3e8e9037c 100644 --- a/microprofile-openapi/src/main/java/org/wildfly/quickstart/microprofile/openapi/InventoryApplication.java +++ b/microprofile-openapi/src/main/java/org/wildfly/quickstart/microprofile/openapi/InventoryApplication.java @@ -24,6 +24,6 @@ import jakarta.ws.rs.ApplicationPath; import jakarta.ws.rs.core.Application; -@ApplicationPath("/") +@ApplicationPath("/rest") public class InventoryApplication extends Application { } 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 index 8e2ad41643..8e02dbd6ca 100644 --- 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 @@ -14,3 +14,4 @@ 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 new file mode 100644 index 0000000000..d4c861ebe1 --- /dev/null +++ b/microprofile-openapi/src/main/webapp/index.html @@ -0,0 +1,30 @@ + + + +
+ +