@Documented
@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface Param
String.valueOf(Object) and URL encoded.
Simple example:
@GET("/image/{id}")
void example(@Path("id") int id);
Calling with foo.example(1) yields /image/1.
Values are URL encoded by default. Disable with encode=false.
@GET("/user/{name}")
void encoded(@Path("name") String name);
@GET("/user/{name}")
void notEncoded(@Path(value="name", encode=false) String name);
Calling foo.encoded("John+Doe") yields /user/John%2BDoe whereas foo.notEncoded("John+Doe") yields /user/John+Doe.
Path parameters may not be null.