Package eu.cloudhopper.mc.annotations
Annotation 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
-
Element Details
-
value
String valueThe name of the path template variable to bind. When left blank, the method parameter's own name is used, so@PathParam Integer idbinds the{id}variable.- Returns:
- the path variable name, or
""to use the parameter name
- Default:
""
-