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-19448] micrometer Quickstarts should have a root webpage similar to helloworld #935

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
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
import jakarta.ws.rs.ApplicationPath;
import jakarta.ws.rs.core.Application;

@ApplicationPath("/")
@ApplicationPath("/rest")
public class JaxRsApplication extends Application {
}
28 changes: 28 additions & 0 deletions micrometer/src/main/webapp/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!--
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>
<title>micrometer</title>
<body>
<div style="text-align:center">

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

</div>
</body>

</html>
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public void makeSeveralApplicationRequests() throws IOException, InterruptedExce
String applicationUrl = BasicRuntimeIT.getApplicationUrl();

final HttpClient client = BasicRuntimeIT.getHttpClient();
final HttpRequest requestPrime = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/prime/13")).GET().build();
final HttpRequest requestHighest = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/prime/highest")).GET().build();
final HttpRequest requestDuplicates = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/duplicates")).GET().build();
final HttpRequest requestDuplicates2 = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/duplicates2")).GET().build();
final HttpRequest requestPrime = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/rest/prime/13")).GET().build();
final HttpRequest requestHighest = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/rest/prime/highest")).GET().build();
final HttpRequest requestDuplicates = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/rest/duplicates")).GET().build();
final HttpRequest requestDuplicates2 = HttpRequest.newBuilder().uri(new URI(applicationUrl + "/rest/duplicates2")).GET().build();



Expand Down
Loading