Annotation Interface PathParam


@Target(PARAMETER) @Retention(SOURCE) public @interface PathParam
Binds a method parameter to a URI path template variable declared in the HttpTrigger.path() (e.g. /player/{id}). The value is converted from its string form to the parameter's declared type.

Usage:


 public String get(@PathParam("id") Integer id) { ... }
 
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the path template variable to bind.
  • Element Details

    • value

      String value
      The name of the path template variable to bind. When left blank, the method parameter's own name is used, so @PathParam Integer id binds the {id} variable.
      Returns:
      the path variable name, or "" to use the parameter name
      Default:
      ""