Annotation Interface HttpRoute


@Retention(RUNTIME) @Target(METHOD) public @interface HttpRoute
Русский: Аннотация указывает что метод является HTTP операцией и определяет ее путь и тип
English: Annotation specifies that the method is an HTTP operation and defines its path and type

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

     @HttpRoute(method = "GET", path = "/username")
     String getUserCode();
 }
 
 
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
     
  • Element Details

    • method

      String method
      Returns:
      Русский: Описывает метод HTTP обработчика
      English: Describes HTTP controller method
      See Also:
    • path

      String path
      Returns:
      Русский: Описывает путь HTTP обработчика
      English: Describes HTTP controller path