Skip to content

Commit

Permalink
Merge pull request #20006 from glefloch/fix/path-param-docs
Browse files Browse the repository at this point in the history
Add missing @PathParam value in examples
  • Loading branch information
gsmet authored Oct 11, 2021
2 parents 835a150 + afb20ca commit 60871e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/main/asciidoc/smallrye-fault-tolerance.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ as follows:
[source,java]
----
import java.util.Collections;
import org.jboss.resteasy.annotations.jaxrs.PathParam;
import org.eclipse.microprofile.faulttolerance.Fallback;
...
public class CoffeeResource {
...
Expand Down
12 changes: 12 additions & 0 deletions docs/src/main/asciidoc/vertx-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,18 @@ Consider these endpoints:

[source,java]
----
package org.acme.vertx;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.jboss.resteasy.annotations.jaxrs.PathParam;
@Path("/hello")
@Produces(MediaType.APPLICATION_JSON)
public class VertxJsonResource {
Expand Down

0 comments on commit 60871e6

Please sign in to comment.