Android: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(Created page with "<source lang="java"> @Rest(rootUrl = "https://api.chorke.org/rest/api", converters = { MappingJackson2HttpMessageConverter.class }) public interface EventsApi { @Get("/event...")
 
Line 11: Line 11:


==References==
==References==
* [https://stackoverflow.com/questions/11046258 What is Coredata equivalent for Android]
* [https://github.com/androidannotations/androidannotations/wiki/Rest-API Android Annotations Rest API]
* [https://github.com/androidannotations/androidannotations/wiki/Rest-API Android Annotations Rest API]
* [https://github.com/androidannotations/androidannotations/wiki Android Annotations Wiki]
* [https://github.com/androidannotations/androidannotations/wiki Android Annotations Wiki]
* [http://androidannotations.org/ Android Annotations]
* [http://androidannotations.org/ Android Annotations]

Revision as of 04:55, 20 April 2020

@Rest(rootUrl = "https://api.chorke.org/rest/api", converters = { MappingJackson2HttpMessageConverter.class })
public interface EventsApi {
  @Get("/events/{year}/{location}")
  EventList getEventsByYearAndLocation(@Path int year, @Path String location);

  @Get("/events/{year}/{location}")
  EventList getEventsByLocationAndYear(@Path String location, @Path int year);
}

References