Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WFLY-19345] microprofile-openapi Quickstarts should have a root webpage similar to helloworld #912

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading