@Retention(value=CLASS) @Target(value=PARAMETER) public @interface Path
Path annotation, or the annotation value is not specified, the
method parameter name will be used as the url variable name. The url in the
Get etc. annotation must contain an url variable, which the
corresponding method variable will be substituted into.
Example :
@Rest(converters = MappingJacksonHttpMessageConverter.class)
public interface MyRestClient {
@Get("/event/{id}")
Event getEvent(String id);
@Get("/event/{id}")
Event getEventWithPathAnnotation(@Path String id);
@Get("/event/{id}")
Event getEventWithPathAnnotationValue(@Path("id") String identifier);
}
Restpublic abstract String value
Copyright © 2010–2020 simpligility technologies inc.. All rights reserved.