Answers for "how to call retrofit api in android"

8

add retrofit dependency android

implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
Posted by: Guest on October-27-2020
15

retrofit android

def retrofit_version = "2.9.0"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
Posted by: Guest on March-06-2021
4

retrofit android

implementation 'com.squareup.retrofit2:retrofit:2.9.0'
Posted by: Guest on July-01-2020
0

retrofit android

public interface GitHubService {
  @GET("users/{user}/repos")
  Call<List<Repo>> listRepos(@Path("user") String user);
}
Posted by: Guest on August-23-2021

Code answers related to "how to call retrofit api in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language