Skip to content

Commit c5a8dad

Browse files
committed
[WFLY-19345] microprofile-openapi Quickstarts should have a root webpage similar to helloworld
1 parent 2642f58 commit c5a8dad

File tree

4 files changed

+33
-2
lines changed

4 files changed

+33
-2
lines changed

microprofile-openapi/README.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ paths:
515515
text/plain:
516516
schema:
517517
type: string
518-
/fruit:
518+
/rest/fruit:
519519
get:
520520
responses:
521521
"200":

microprofile-openapi/src/main/java/org/wildfly/quickstart/microprofile/openapi/InventoryApplication.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
import jakarta.ws.rs.ApplicationPath;
2525
import jakarta.ws.rs.core.Application;
2626

27-
@ApplicationPath("/")
27+
@ApplicationPath("/rest")
2828
public class InventoryApplication extends Application {
2929
}

microprofile-openapi/src/main/java/org/wildfly/quickstart/microprofile/openapi/RootResource.java

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ public String getRootResponse() {
1414
return "MicroProfile OpenAPI quickstart deployed successfully. You can find the available operations in the included README file.";
1515
}
1616
}
17+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!--
2+
JBoss, Home of Professional Open Source
3+
Copyright 2024, Red Hat, Inc. and/or its affiliates, and individual
4+
contributors by the @authors tag. See the copyright.txt in the
5+
distribution for a full listing of individual contributors.
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
<!DOCTYPE html>
17+
<html lang="en">
18+
<head>
19+
<meta charset="UTF-8">
20+
<title>microprofile-openapi</title>
21+
</head>
22+
<body>
23+
<div style="text-align:center">
24+
25+
<h1>Hello There! Welcome to WildFly!</h1>
26+
<h2>The microprofile-openapi application has been deployed and running successfully.</h2>
27+
28+
</div>
29+
</body>
30+
</html>

0 commit comments

Comments
 (0)