Annotation Interface Path


@Retention(RUNTIME) @Target(PARAMETER) public @interface Path
Русский: Аннотация указывает аргумент метода должен быть интерпретирован как часть пути запроса/ответа
English: Annotation specifies the method argument should be interpreted as a part of request/response path

Пример / Example:
 
 @HttpClient("my.config")
 public interface MyHttpClient {

     @HttpRoute(method = "GET", path = "/username/{name}")
     String getUserCode(@Path("name") String value);
 }
 
 
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Returns:
      Русский: Описывает имя параметра пути
      English: Describes the name of the Path parameter
      Default:
      ""