Java Code Examples for retrofit2.http.Path

The following examples show how to use retrofit2.http.Path. These examples are extracted from open source projects. 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 Project: adamant-android   Source File: AdamantApi.java    License: GNU General Public License v3.0 5 votes vote down vote up
@GET("chatrooms/{address}")
Flowable<ChatList> getChatsByOffset(
        @Path("address") String address,
        @Query("offset") int offset,
        @Query("limit") int limit,
        @Query("orderBy") String order
);
 
Example 2
Source Project: botbuilder-java   Source File: RestConversations.java    License: MIT License 5 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8",
    "x-ms-logging-context: com.microsoft.bot.schema.Conversations updateActivity" })
@PUT("v3/conversations/{conversationId}/activities/{activityId}")
CompletableFuture<Response<ResponseBody>> updateActivity(
    @Path("conversationId") String conversationId,
    @Path("activityId") String activityId,
    @Body Activity activity,
    @Header("accept-language") String acceptLanguage,
    @Header("User-Agent") String userAgent
);
 
Example 3
Source Project: botbuilder-java   Source File: RestTeamsOperations.java    License: MIT License 5 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8",
    "x-ms-logging-context: com.microsoft.bot.schema.Teams fetchChannelList" })
@POST("v3/teams/{teamId}/conversations")
CompletableFuture<Response<ResponseBody>> fetchChannelList(
    @Path("teamId") String teamId,
    @Header("accept-language") String acceptLanguage,
    @Header("User-Agent") String userAgent
);
 
Example 4
Source Project: burstkit4j   Source File: HttpBurstNodeService.java    License: Apache License 2.0 5 votes vote down vote up
@POST("{endpoint}?requestType=sendMoney")
Single<GenerateTransactionResponse> sendMoney(@Path("endpoint") String endpoint,
        @Query("recipient") String recipient, @Query("recipientPublicKey") String recipientPublicKey,
        @Query("amountNQT") String amount, @Query("secretPhrase") String secretPhrase,
        @Query("publicKey") String publicKey, @Query("feeNQT") String fee, @Query("deadline") int deadline,
        @Query("referencedTransactionFullHash") String referencedTransactionFullHash,
        @Query("broadcast") boolean broadcast, @Query("message") String message,
        @Query("messageIsText") Boolean messageIsText, @Query("messageToEncrypt") String messageToEncrypt,
        @Query("messageToEncryptIsText") Boolean messageToEncryptIsText,
        @Query("encryptedMessageData") String encryptedMessageData,
        @Query("encryptedMessageNonce") String encryptedMessageNonce,
        @Query("messageToEncryptToSelf") String messageToEncryptToSelf,
        @Query("messageToEncryptToSelfIsText") Boolean messageToEncryptToSelfIsText,
        @Query("encryptedToSelfMessageData") String encryptedToSelfMessageData,
        @Query("encryptedToSelfMessageNonce") String encryptedToSelfMessageNonce);
 
Example 5
Source Project: kucoin-java-sdk   Source File: AccountAPIRetrofit.java    License: MIT License 5 votes vote down vote up
@GET("api/v1/accounts/{accountId}/ledgers")
Call<KucoinResponse<Pagination<AccountDetailResponse>>> getAccountDetail(
        @Path("accountId") String accountId,
        @Query("currentPage") int currentPage,
        @Query("pageSize") int pageSize,
        @Query("startAt") long startAt,
        @Query("endAt") long endAt);
 
Example 6
Source Project: botbuilder-java   Source File: RestConversations.java    License: MIT License 5 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8",
    "x-ms-logging-context: com.microsoft.bot.schema.Conversations getActivityMembers" })
@GET("v3/conversations/{conversationId}/activities/{activityId}/members")
CompletableFuture<Response<ResponseBody>> getActivityMembers(
    @Path("conversationId") String conversationId,
    @Path("activityId") String activityId,
    @Header("accept-language") String acceptLanguage,
    @Header("User-Agent") String userAgent
);
 
Example 7
Source Project: botbuilder-java   Source File: RestAttachments.java    License: MIT License 5 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8",
    "x-ms-logging-context: com.microsoft.bot.schema.Attachments getAttachment" })
@GET("v3/attachments/{attachmentId}/views/{viewId}")
@Streaming
CompletableFuture<Response<ResponseBody>> getAttachment(
    @Path("attachmentId") String attachmentId,
    @Path("viewId") String viewId,
    @Header("accept-language") String acceptLanguage,
    @Header("User-Agent") String userAgent
);
 
Example 8
@GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25")
Call<String> getSubredditBestPostsOauth(@Path("subredditName") String subredditName, @Path("sortType") String sortType,
                                        @Query("t") String sortTime, @Query("after") String lastItem,
                                        @HeaderMap Map<String, String> headers);
 
Example 9
Source Project: CoinGecko-Java   Source File: CoinGeckoApiService.java    License: MIT License 4 votes vote down vote up
@GET("simple/token_price/{id}")
Call<Map<String,Map<String, Double>>> getTokenPrice(@Path("id") String id, @Query("contract_addresses") String contractAddress,
                           @Query("vs_currencies") String vsCurrencies, @Query("include_market_cap") boolean includeMarketCap,
                           @Query("include_24hr_vol") boolean include24hrVol, @Query("include_24hr_change") boolean include24hrChange,
                           @Query("include_last_updated_at") boolean includeLastUpdatedAt);
 
Example 10
Source Project: DanDanPlayForAndroid   Source File: RetrofitService.java    License: MIT License 4 votes vote down vote up
@GET("/api/v2/bangumi/season/anime/{year}/{month}")
Observable<BangumiBean> getSeasonAnime(@Path("year") String year, @Path("month") String month);
 
Example 11
@GET("stock/{symbol}/quote")
Single<IexQuote> getQuote(
        @Path("symbol") String symbol
);
 
Example 12
Source Project: 1Rramp-Android   Source File: HaprampAPI.java    License: MIT License 4 votes vote down vote up
@GET("competitions/{competition_id}/body/announce")
Call<FormattedBodyResponse> requestContestPostBody(@Path("competition_id") String comp_id);
 
Example 13
Source Project: WanAndroid   Source File: RetrofitService.java    License: Apache License 2.0 4 votes vote down vote up
@POST(Api.QUERY_ARTICLES + "{page}/json")
Observable<ArticlesData> queryArticles(@Path("page") int page, @Query("k") String k);
 
Example 14
@GET("/blocks/{timeMillis}?format=json")
Call<BlockHeightResponse> getCurrentBlockHeight(@Path("timeMillis") String time);
 
Example 15
Source Project: CoinGecko-Java   Source File: CoinGeckoApiService.java    License: MIT License 4 votes vote down vote up
@GET("coins/{id}/contract/{contract_address}")
Call<CoinFullData> getCoinInfoByContractAddress(@Path("id") String id, @Path("contract_address") String contractAddress);
 
Example 16
Source Project: DanDanPlayForAndroid   Source File: RetrofitService.java    License: MIT License 4 votes vote down vote up
@GET("api/v2/bangumi/{animeId}")
Observable<AnimeDetailBean> getAnimaDetail(@Path("animeId") String animaId);
 
Example 17
Source Project: 1Rramp-Android   Source File: HaprampAPI.java    License: MIT License 4 votes vote down vote up
@GET("competitions/{competition_id}/register-permlink/{blog_type}")
Single<CompetitionCreateResponse> registerCompetitionPermlink(
  @Path("competition_id") String competitionId,
  @Path("blog_type") String blog_type,
  @Query("permlink") String permlink);
 
Example 18
@GET("/getAddressInfo/{address}?apiKey=freekey")
Observable<Response<EthplorerResponse>> fetchTokens(@Path("address") String address);
 
Example 19
Source Project: CoinGecko-Java   Source File: CoinGeckoApiService.java    License: MIT License 4 votes vote down vote up
@GET("exchanges/{id}/volume_chart")
Call<List<List<String>>> getExchangesVolumeChart(@Path("id") String id,@Query("days") Integer days);
 
Example 20
Source Project: youqu_master   Source File: ApiService.java    License: Apache License 2.0 4 votes vote down vote up
@GET("book/series/{seriesId}/books")
Observable<BookListData> getBookSeries(@Path("seriesId") String seriesId, @Query("start") int start, @Query("count") int count, @Query("fields") String fields);
 
Example 21
Source Project: v9porn   Source File: MeiZiTuServiceApi.java    License: MIT License 4 votes vote down vote up
@Headers({"Referer: " + Api.APP_MEIZITU_DOMAIN,
        "Domain-Name: " + Api.MEI_ZI_TU_DOMAIN_NAME})
@GET("japan/page/{page}/")
Observable<String> meiZiTuJapan(@Path("page") int page);
 
Example 22
Source Project: burstkit4j   Source File: HttpBurstNodeService.java    License: Apache License 2.0 4 votes vote down vote up
@GET("{endpoint}?requestType=getAccountTransactionIds")
Single<AccountTransactionIDsResponse> getAccountTransactionIDs(@Path("endpoint") String endpoint,
        @Query("account") String accountId, @Query("timestamp") String timestamp, @Query("type") String type,
        @Query("subtype") String subtype, @Query("firstIndex") String firstIndex,
        @Query("lastIndex") String lastIndex, @Query("numberOfConfirmations") String numberOfConfirmations);
 
Example 23
Source Project: Gander   Source File: SampleApiService.java    License: Apache License 2.0 4 votes vote down vote up
@GET("/delay/{seconds}")
Call<Void> delay(@Path("seconds") int seconds);
 
Example 24
Source Project: v9porn   Source File: MeiZiTuServiceApi.java    License: MIT License 4 votes vote down vote up
@Headers({"Referer: " + Api.APP_MEIZITU_DOMAIN,
        "Domain-Name: " + Api.MEI_ZI_TU_DOMAIN_NAME})
@GET("hot/page/{page}/")
Observable<String> meiZiTuHot(@Path("page") int page);
 
Example 25
Source Project: AndroidFrame   Source File: BeautyApi.java    License: Apache License 2.0 4 votes vote down vote up
@GET("data/福利/{number}/{page}")
Observable<GankBeautyResult> getBeauties(@Path("number") int number, @Path("page") int page);
 
Example 26
Source Project: pandora   Source File: ApiService.java    License: Apache License 2.0 4 votes vote down vote up
@GET("/basic-auth/{user}/{passwd}")
Call<Void> basicAuth(@Path("user") String user, @Path("passwd") String passwd);
 
Example 27
Source Project: homeassist   Source File: RestAPIService.java    License: Apache License 2.0 4 votes vote down vote up
@GET("/api/logbook/{timestamp}")
Call<ArrayList<LogSheet>> getLogbook(@Header("x-ha-access") String password, @Path("timestamp") String domain);
 
Example 28
@GET("user/{username}/{where}.json?&type=links&raw_json=1&limit=25")
Call<String> getUserPostsOauth(@Path("username") String username, @Path("where") String where,
                               @Query("after") String lastItem, @Query("sort") String sortType, @HeaderMap Map<String, String> headers);
 
Example 29
@GET("addr/{address}/utxo")
Call<List<UTXOItem>> getUTXOByAddress(@Path("address") String address);
 
Example 30
Source Project: 1Rramp-Android   Source File: HaprampAPI.java    License: MIT License 4 votes vote down vote up
@POST("micro-communities/{micro_community_tag}/join")
Call<AppServerUserModel> joinCommunity(@Path("micro_community_tag") String mc_id);