diff --git a/microprofile-rest-client/README.adoc b/microprofile-rest-client/README.adoc index 5cd59f3a29..407b8a2d24 100644 --- a/microprofile-rest-client/README.adoc +++ b/microprofile-rest-client/README.adoc @@ -510,9 +510,9 @@ You should see a message in the server log indicating that the archive deployed The application will be running at the following URL: http://localhost:8080/{artifactId}/. You can verify that the server is responding by accessing -`http://localhost:8080/{artifactId}/name/France` +`http://localhost:8080/{artifactId}/rest/name/France` endpoint using your browser or -`curl http://localhost:8080/{artifactId}/name/France` +`curl http://localhost:8080/{artifactId}/rest/name/France` to get some information about `France`. == The Country REST Client @@ -533,7 +533,7 @@ import jakarta.ws.rs.Path; import jakarta.ws.rs.PathParam; import jakarta.ws.rs.Produces; -@Path("/") +@Path("/rest") public interface CountriesServiceClient { @GET diff --git a/microprofile-rest-client/src/main/java/org/wildfly/quickstarts/microprofile/RestApplication.java b/microprofile-rest-client/src/main/java/org/wildfly/quickstarts/microprofile/RestApplication.java index 3eff6405c7..e90105ebe7 100644 --- a/microprofile-rest-client/src/main/java/org/wildfly/quickstarts/microprofile/RestApplication.java +++ b/microprofile-rest-client/src/main/java/org/wildfly/quickstarts/microprofile/RestApplication.java @@ -22,6 +22,6 @@ import jakarta.ws.rs.ApplicationPath; import jakarta.ws.rs.core.Application; -@ApplicationPath("/") +@ApplicationPath("/rest") public class RestApplication extends Application { } diff --git a/microprofile-rest-client/src/main/webapp/index.html b/microprofile-rest-client/src/main/webapp/index.html new file mode 100644 index 0000000000..a66c53a0be --- /dev/null +++ b/microprofile-rest-client/src/main/webapp/index.html @@ -0,0 +1,28 @@ + + + +