retrofit.http.GET类的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(228)

本文整理了Java中retrofit.http.GET类的一些代码示例,展示了GET类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GET类的具体详情如下:
包路径:retrofit.http.GET
类名称:GET

GET介绍

暂无

代码示例

代码示例来源:origin: commonsguy/cw-omnibus

@GET("/2.1/questions?order=desc&sort=creation&site=stackoverflow")
 void questions(@Query("tagged") String tags, Callback<SOQuestions> cb);
}

代码示例来源:origin: commonsguy/cw-omnibus

@GET("/2.1/questions?order=desc&sort=creation&site=stackoverflow")
void questions(@Query("tagged") String tags, Callback<SOQuestions> cb);
@GET("/2.2/questions?order=desc&sort=creation&site=stackoverflow&tagged=android")

代码示例来源:origin: commonsguy/cw-omnibus

@GET("/2.1/questions?order=desc&sort=creation&site=stackoverflow")
 void questions(@Query("tagged") String tags, Callback<SOQuestions> cb);
}

代码示例来源:origin: commonsguy/cw-omnibus

@GET("/2.1/questions?order=desc&sort=creation&site=stackoverflow")
 void questions(@Query("tagged") String tags, Callback<SOQuestions> cb);
}

代码示例来源:origin: commonsguy/cw-omnibus

@GET("/2.2/questions?order=desc&sort=creation&site=stackoverflow&tagged=android")
 void search(@Query("intitle") String search, Callback<SOQuestions> cb);
}

代码示例来源:origin: naman14/Timber

@Headers("Cache-Control: public")
@GET(BASE_PARAMETERS_ARTIST)
void getArtistInfo(@Query("artist") String artist, Callback<ArtistInfo> callback);

代码示例来源:origin: aa112901/remusic

@Headers("Cache-Control: public")
@GET(BASE_PARAMETERS_ARTIST)
void getArtistInfo(@Query("artist") String artist, Callback<ArtistInfo> callback);

代码示例来源:origin: konmik/nucleus

@GET("/jokes/random/10")
  Observable<Response> getItems(@Query("firstName") String firstName, @Query("lastName") String lastName);
}

代码示例来源:origin: konmik/nucleus

@GET("/jokes/random/10")
  Observable<Response> getItems(@Query("firstName") String firstName, @Query("lastName") String lastName);
}

代码示例来源:origin: naman14/Timber

@Headers("Cache-Control: public")
  @GET("/lyrics")
  void getLyrics(@Query("artist") String artist, @Query("title") String title, Callback<String> callback);
}

代码示例来源:origin: naman14/Timber

@Headers("Cache-Control: public")
@GET(BASE_PARAMETERS_ALBUM)
void getAlbumInfo(@Query("artist") String artist, @Query("album") String album, Callback<AlbumInfo> callback);

代码示例来源:origin: aa112901/remusic

@Headers("Cache-Control: public")
@GET(BASE_PARAMETERS_ALBUM)
void getAlbumInfo(@Query("artist") String artist, @Query("album") String album, Callback<AlbumInfo> callback);

代码示例来源:origin: konmik/nucleus

@GET("/jokes/{id}")
  Observable<ItemResponse> getItem(@Query("firstName") String firstName, @Query("lastName") String lastName, @Path("id") int id);
}

代码示例来源:origin: konmik/nucleus

@GET("/jokes/random/10")
Observable<Response> getItems(@Query("firstName") String firstName, @Query("lastName") String lastName, @Header("pageNumber") int pageNumberIgnored);

代码示例来源:origin: spinnaker/kayenta

@GET("/api/v1/atlas/backends.json")
 List<Backend> fetch();
}

代码示例来源:origin: spinnaker/kayenta

@GET("/api/v1/label/__name__/values")
 PrometheusMetricDescriptorsResponse listMetricDescriptors();
}

代码示例来源:origin: THEONE10211024/RxJavaSamples

/**
 * See https://developer.github.com/v3/users/
 */
@GET("/users/{user}")
Observable<User> user(@Path("user") String user);

代码示例来源:origin: THEONE10211024/RxJavaSamples

/**
   * See https://developer.github.com/v3/users/
   */
  @GET("/users/{user}")
  User getUser(@Path("user") String user);
}

代码示例来源:origin: yigit/dev-summit-architecture-demo

@GET("/feed.json")
Call<FeedResponse> feed(@Query("since") long since);

代码示例来源:origin: THEONE10211024/RxJavaSamples

/**
 * See https://developer.github.com/v3/repos/#list-contributors
 */
@GET("/repos/{owner}/{repo}/contributors")
Observable<List<Contributor>> contributors(@Path("owner") String owner,
                      @Path("repo") String repo);

相关文章