retrofit.http.GET Java Examples

The following examples show how to use retrofit.http.GET. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WavefrontRemoteService.java    From kayenta with Apache License 2.0 5 votes vote down vote up
@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);
 
Example #2
Source File: AuthApi.java    From MangoBloggerAndroidApp with Mozilla Public License 2.0 5 votes vote down vote up
@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);
 
Example #3
Source File: TalkApi.java    From talk-android with MIT License 5 votes vote down vote up
@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
);
 
Example #4
Source File: DatadogRemoteService.java    From kayenta with Apache License 2.0 5 votes vote down vote up
@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);
 
Example #5
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@GET("/messages/mentions")
Observable<List<Message>> getMoreMentionedMessages(@Query("_teamId") String teamId,
                                                   @Query("maxId") String maxId,
                                                   @Query("limit") int limit);
 
Example #6
Source File: Version12xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@GET("/organizations/{orgName}/apis/{apiName}/versions/{version}/policies")
List<ApiPolicy> fetchPolicies(@Path("orgName") String orgName, @Path("apiName") String apiName,
                              @Path("version") String version);
 
Example #7
Source File: UnsplashService.java    From animation-samples with Apache License 2.0 4 votes vote down vote up
@GET("/list")
void getFeed(Callback<List<Photo>> callback);
 
Example #8
Source File: AccountApi.java    From talk-android with MIT License 4 votes vote down vote up
@GET("/user/accounts")
Observable<List<User>> getAccounts();
 
Example #9
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@GET("/favorites")
Observable<List<Message>> getFavorites(@Query("_teamId") String teamId, @Query("_maxId") String maxId);
 
Example #10
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@GET("/discover/urlmeta")
Observable<Link> getUrlMeta(@Query("url") String url);
 
Example #11
Source File: ApiService.java    From droidddle with Apache License 2.0 4 votes vote down vote up
@GET("/users/{id}/following")
Observable<List<Following>> getUserFollowings(@Path("id") long id, @Query("page") int page);
 
Example #12
Source File: RoscoService.java    From halyard with Apache License 2.0 4 votes vote down vote up
@GET("/status/all")
AllStatus getAllStatus();
 
Example #13
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@GET("/teams/{id}/rooms")
Observable<List<Room>> getRooms(@Path("id") String teamId);
 
Example #14
Source File: ApiService.java    From droidddle with Apache License 2.0 4 votes vote down vote up
@GET("/shots/{id}/attachments")
Observable<List<Attachment>> getShotAttachments(@Path("id") long id, @Query("page") int page);
 
Example #15
Source File: ApiService.java    From materialup with Apache License 2.0 4 votes vote down vote up
@Headers("Accept: application/json")
@GET("/posts/{id}")
Observable<MuResponse> getPost(@Path("id") long id);
 
Example #16
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@GET("/teams/readbyinvitecode")
Observable<Team> getTeamByInviteCode(@Query("inviteCode") String inviteCode);
 
Example #17
Source File: ApiService.java    From materialup with Apache License 2.0 4 votes vote down vote up
@Headers("Accept: application/json")
@GET("/posts/{id}/sidebar")
Observable<MuResponse> getPostSidebar(@Path("id") String id);
 
Example #18
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@GET("/teams")
Observable<List<Team>> getTeams();
 
Example #19
Source File: DropboxAPI.java    From CatanArchitecture with Apache License 2.0 4 votes vote down vote up
@GET("/metadata/auto/{storagePath}")
void obtainFolders(@Path("storagePath") String storagePath, retrofit.Callback<DropboxFoldersResponse> folders);
 
Example #20
Source File: StatusApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@GET("/system/status")
Response checkStatus();
 
Example #21
Source File: GankApi.java    From GankMeizhi with Apache License 2.0 4 votes vote down vote up
@GET("/data/iOS/{limit}/{page}")
Observable<CommonGoodsBean> getIosGoods(
        @Path("limit") int limit,
        @Path("page") int page
);
 
Example #22
Source File: ApiService.java    From droidddle with Apache License 2.0 4 votes vote down vote up
@GET("/teams/{id}/shots")
Observable<List<Shot>> getTeamShots(@Path("id") long id, @Query("page") int page);
 
Example #23
Source File: Version11xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@GET("/organizations/{orgName}/services")
List<Api> list(@Path("orgName") String orgName);
 
Example #24
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@GET("/users")
Observable<List<Member>> getUserByPhone(@Query("mobiles") String mobile);
 
Example #25
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@GET("/users/me")
Observable<User> getUser();
 
Example #26
Source File: ClouddriverApi.java    From fiat with Apache License 2.0 4 votes vote down vote up
@GET("/credentials")
List<Account> getAccounts();
 
Example #27
Source File: ApiService.java    From materialup with Apache License 2.0 4 votes vote down vote up
@Headers("Accept: text/html,application/xhtml+xml,application/xml")
@GET("/users/{id}")
Observable<ResponseBody> getUserInfo(@Path("id") String id);
 
Example #28
Source File: CallApi.java    From talk-android with MIT License 4 votes vote down vote up
@GET("/2013-12-26/Accounts/{accountSid}/CallResult")
Observable<CallResultRes> getCallResult(@Header("authorization") String authorization, @Path("accountSid") String accountSid, @Query("sig") String signature, @Query("callsid") String callSid);
 
Example #29
Source File: SpiderApi.java    From talk-android with MIT License 4 votes vote down vote up
@GET("/api/track")
Observable<Object> spider(@Query("data") String data);
 
Example #30
Source File: ApiService.java    From droidddle with Apache License 2.0 4 votes vote down vote up
@GET("/shots/{id}/rebounds")
Observable<List<Shot>> getShotRebounds(@Path("id") long id, @Query("page") int page);