@Retention(value=CLASS) @Target(value=METHOD) public @interface Put
Use on methods in Rest
annotated class to add a new rest service of
type PUT.
This annotation as the EXACT same constraints as Post
.
Example :@Rest(rootUrl = "http://myserver", converters = MappingJacksonHttpMessageConverter.class) public interface MyRestClient { @Put("/events/update/last") Event updateEvent(); @Put("/events/update/{id}") void updateEvent(Event event, int id); }
public abstract String value
Copyright © 2010-2015. All Rights Reserved.