Skip to content

Instantly share code, notes, and snippets.

@hassanabidpk
Created August 1, 2017 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hassanabidpk/7e62f5c3cad7473f0b76f1308172515e to your computer and use it in GitHub Desktop.
Save hassanabidpk/7e62f5c3cad7473f0b76f1308172515e to your computer and use it in GitHub Desktop.
For Medium Blog post
package co.searchrestaurant.android.app.fetch;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
/**
* Created by hassanabid on 2/27/16.
*/
public interface SearchRestaurantApi {
@GET("api/v1/")
Call<SearchRestaurantResponse[]> getRestaurantsList(@Query("format") String format, @Query("location") String location,
@Query("rtype") String rtype);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment