Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Erin Schnabel <[email protected]>
  • Loading branch information
gsmet and ebullient authored Aug 23, 2021
1 parent c234c9a commit 895f686
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ static final class ResteasyConfig {

/**
* Set this to override the default path for JAX-RS resources if there are no
* annotated application classes.
* annotated application classes. This path is specified with a leading {@literal /}, but is resolved relative
* to {@literal quarkus.http.root-path}.
* <ul>
* <li>If {@literal quarkus.http.root-path=/} and {@code quarkus.resteasy.path=/bar}, the JAX-RS resource path will be {@literal /bar}</li>
* <li>If {@literal quarkus.http.root-path=/bar} and {@code quarkus.resteasy.path=/bar}, the JAX-RS resource path will be {@literal /foo/bar}</li>
* </ul>
*/
@ConfigItem(defaultValue = "/")
@ConvertWith(NormalizeRootHttpPathConverter.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ public String resolvePath(String path) {
* <p>
* Given {@literal quarkus.http.root-path=/}
* <ul>
* <li>{@code resolvePath("foo")} will return {@literal /foo}</li>
* <li>{@code resolvePath("/foo")} will return {@literal /foo}</li>
* <li>{@code relativePath("foo")} will return {@literal /foo}</li>
* <li>{@code relativePath("/foo")} will return {@literal /foo}</li>
* </ul>
* Given {@literal quarkus.http.root-path=/app}
* <ul>
* <li>{@code resolvePath("foo")} will return {@literal /app/foo}</li>
* <li>{@code resolvePath("/foo")} will return {@literal /app/foo}</li>
* <li>{@code relativePath("foo")} will return {@literal /app/foo}</li>
* <li>{@code relativePath("/foo")} will return {@literal /app/foo}</li>
* </ul>
* <p>
* The returned path will not end with a slash.
Expand Down

0 comments on commit 895f686

Please sign in to comment.