Annotation Interface Query


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

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

     @HttpRoute(method = "GET", path = "/username")
     String getUserCode(@Query("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 Query parameter
      Default:
      ""