Skip to content

Commit

Permalink
[WFLY-19345] microprofile-openapi Quickstarts should have a root webp…
Browse files Browse the repository at this point in the history
…age similar to helloworld
  • Loading branch information
sudeshnas93 committed Jun 13, 2024
1 parent 2642f58 commit c5a8dad
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion microprofile-openapi/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ paths:
text/plain:
schema:
type: string
/fruit:
/rest/fruit:
get:
responses:
"200":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
import jakarta.ws.rs.ApplicationPath;
import jakarta.ws.rs.core.Application;

@ApplicationPath("/")
@ApplicationPath("/rest")
public class InventoryApplication extends Application {
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ public String getRootResponse() {
return "MicroProfile OpenAPI quickstart deployed successfully. You can find the available operations in the included README file.";
}
}

30 changes: 30 additions & 0 deletions microprofile-openapi/src/main/webapp/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!--
JBoss, Home of Professional Open Source
Copyright 2024, Red Hat, Inc. and/or its affiliates, and individual
contributors by the @authors tag. See the copyright.txt in the
distribution for a full listing of individual contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>microprofile-openapi</title>
</head>
<body>
<div style="text-align:center">

<h1>Hello There! Welcome to WildFly!</h1>
<h2>The microprofile-openapi application has been deployed and running successfully.</h2>

</div>
</body>
</html>

0 comments on commit c5a8dad

Please sign in to comment.