【Android复习笔记】Retrofit核心原理

Retrofit 使用方法简介

1. 创建一个 interface 作为 Web Service 的请求集合,在里面用注解(Annotation)写入需要配置的请求方法

public interface GitHubService {
   
	@GET("users/{user}/repos")
	Call<List<Repo>> listRepos(@Path(

你可能感兴趣的:(Android复习笔记,Retrofit,Android)