org.androidannotations.annotations.rest
Annotation Type Delete


@Retention(value=CLASS)
@Target(value=METHOD)
public @interface Delete

Use on methods in Rest annotated class to add a new rest service of type DELETE.

This annotation as the EXACT same constraints as Post.

Example :
 @Rest(rootUrl = "http://myserver", converters = MappingJacksonHttpMessageConverter.class)
 public interface MyRestClient {
 
        @Delete("/events/delete/last")
        Event deleteEvent();
 
        @Delete("/events/new/{id}")
        void deleteEvent(Event event, int id);
 }
 

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

Required Element Summary
 String value
           
 

Element Detail

value

public abstract String value


Copyright © 2010-2014. All Rights Reserved.