org.androidannotations.annotations.rest
Annotation Type Put


@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);
 }
 

See Also:
Rest, Get, Post, Delete, Head, Options

Required Element Summary
 String value
           
 

Element Detail

value

public abstract String value


Copyright © 2010-2014. All Rights Reserved.