Created
May 18, 2018 17:04
-
-
Save LSViana/4f5d8265a4db86d3fd50fee3f2db351a to your computer and use it in GitHub Desktop.
Interface to fetch API using Retrofit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package intro.api.senai.com.apiusage.utils; | |
import intro.api.senai.com.apiusage.models.CEP; | |
import retrofit2.Call; | |
import retrofit2.http.GET; | |
import retrofit2.http.Path; | |
public interface CEPRestService { | |
@GET("{cep}") | |
Call<CEP> get(@Path("cep") Long id); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment