Back to project page android-play-api-client.
The source code is released under:
Apache License
If you think the Android project android-play-api-client listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package ar.com.gmvsoft.play.api; /*from w w w . j a v a2s .co m*/ import java.util.List; import org.androidannotations.annotations.rest.Accept; import org.androidannotations.annotations.rest.Get; import org.androidannotations.annotations.rest.Post; import org.androidannotations.annotations.rest.Rest; import org.androidannotations.api.rest.MediaType; import org.androidannotations.api.rest.RestClientErrorHandling; import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; import ar.com.gmvsoft.play.api.dto.BaseProductDTO; import ar.com.gmvsoft.play.api.dto.ProductDTO; @Rest(converters = { MappingJackson2HttpMessageConverter.class }) @Accept(MediaType.APPLICATION_JSON) public interface ProductsResource extends RestClientErrorHandling { @Get("/products") List<ProductDTO> products(); @Get("/products/{id}") ProductDTO productById(Long id); @Post("/products") void addProduct(BaseProductDTO product); String getRootUrl(); void setRootUrl(String url); }