下面列出了android.database.Observable#retrofit.http.GET 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@GET("/api/v2/chart/api")
WavefrontTimeSeries fetch(
@Header("Authorization") String authorization,
@Query("n") String name,
@Query("q") String query,
@Query("s") Long startTime,
@Query("e") Long endTime,
@Query("g") String granularity,
@Query("summarization") String summarization,
@Query("listMode") boolean listMode,
@Query("strict") boolean strict,
@Query("sorted") boolean sorted);
@GET("/api/v1/query")
DatadogTimeSeries getTimeSeries(
@Header("DD-API-KEY") String apiKey,
@Header("DD-APPLICATION-KEY") String applicationKey,
@Query("from") int startTimestamp,
@Query("to") int endTimestamp,
@Query("query") String query);
@GET("/ledzee1729/user/register/")
void registerUser(@Query("username") String username,
@Query("email") String email,
@Query("nonce") String nonce,
@Query("display_name") String display_name,
@Query("notify") String notify,
@Query("user_pass") String password,
Callback<RegisterResponse> callback);
@GET("/messages/tags")
Observable<List<Message>> readMoreTagWithMessage(
@Query("_teamId") String teamId,
@Query("_tagId") String tagId,
@Query("_maxId") String maxId,
@Query("isDirectMessage") boolean isDirectMessage,
@Query("limit") int limit
);
@GET("/list")
void getFeed(Callback<List<Photo>> callback);
@GET("/users/{id}/likes")
Observable<List<LikedShot>> getUserLikedShot(@Path("id") long id, @Query("page") int page);
@GET("/api/v1/label/__name__/values")
PrometheusMetricDescriptorsResponse listMetricDescriptors();
@GET("/user/following/shots")
List<Shot> getUserFollowingShotsSync(@Query("page") int page);
@GET("/metrics/find")
GraphiteMetricDescriptorsResponse findMetrics(
@Query("query") String query, @Query("format") String format);
@GET("/api/v1/metrics")
DatadogMetricDescriptorsResponse getMetrics(
@Header("DD-API-KEY") String apiKey,
@Header("DD-APPLICATION-KEY") String applicationKey,
@Query("from") long from);
@GET("/organizations/{orgName}")
Org fetch(@Path("orgName") String orgName);
@GET("/buckets/{id}/shots")
List<Shot> getBucketShotsSync(@Path("id") long id, @Query("page") int page);
@GET("/api/v1/atlas/backends.json")
List<Backend> fetch();
@GET("/organizations/{organizationId}/apis/{apiId}/versions")
List<String> listApiVersions(@Path("organizationId") String organizationId,
@Path("apiId") String apiId);
@GET("/user/fetch")
Observable<User> fetchUserInfo(@Query("id") String key);
@GET("/hosts")
Observable<List<String>> hosts();
@GET("/action/api/tweet_list")
Observable<RespTweetList> getTweetList(
@Query("uid") long uid,
@Query("pageIndex") int pageIndex,
@Query("pageSize") int pageSize
);
@GET("/token")
AuthToken refreshToken();
@GET("/health")
SpringHealth health();
@GET("/userinfo1")
Observable<Response> getUserInfo1();
@GET("/teams/{id}/members")
Observable<List<User>> getTeamMembers(@Path("id") long id, @Query("page") int page);
@GET("/health")
SpringHealth health();
@GET("/contributor/list")
Observable<List<Contributor>> contributors();
/**
* New API with more REST-friendly structure.
**/
@GET("/organizations/{organizationId}/apis/{apiId}/versions/{version}/endpoint")
ApiEndpoint getApiEndpoint2(@Path("organizationId") String organizationId,
@Path("apiId") String apiId,
@Path("version") String version);
@GET("/shots/{id}/projects")
Observable<List<Project>> getShotProjects(@Path("id") long id, @Query("page") int page);
@GET("/action/api/blogcomment_list")
Observable<RespCmmList> getBlogCmmList(
@Query("id") long id,
@Query("pageIndex") int pageIndex,
@Query("pageSize") int pageSize
);
@GET("/user/following/shots")
Observable<List<Shot>> getUserFollowingShots(@Query("page") int page);
@GET("/shots/{id}/attachments/{aid}")
Observable<Attachment> getAttachments(@Path("id") long id, @Path("aid") long aid);
@GET("/ledzee1729/get_nonce/")
void getNonceId(@Query("controller") String controller,
@Query("method") String method,
Callback<NonceIdResponse> callback);
@GET("/resolvedEnv")
Map<String, String> resolvedEnv();