Annotation Interface Path
Русский: Аннотация указывает аргумент метода должен быть интерпретирован как часть пути запроса/ответа
English: Annotation specifies the method argument should be interpreted as a part of request/response path
Пример / Example:
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
-
Element Details
-
value
String value- Returns:
- Русский: Описывает имя параметра пути
English: Describes the name of the Path parameter
- Default:
- ""
-