retrofit2.http.Path Java Examples
The following examples show how to use
retrofit2.http.Path.
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: RestTeamsOperations.java From botbuilder-java with MIT License | 5 votes |
@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 #2
Source File: RestAttachments.java From botbuilder-java with MIT License | 5 votes |
@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 #3
Source File: AdamantApi.java From adamant-android with GNU General Public License v3.0 | 5 votes |
@GET("chatrooms/{address}") Flowable<ChatList> getChatsByOffset( @Path("address") String address, @Query("offset") int offset, @Query("limit") int limit, @Query("orderBy") String order );
Example #4
Source File: RestConversations.java From botbuilder-java with MIT License | 5 votes |
@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 #5
Source File: AccountAPIRetrofit.java From kucoin-java-sdk with MIT License | 5 votes |
@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 File: RestConversations.java From botbuilder-java with MIT License | 5 votes |
@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 #7
Source File: HttpBurstNodeService.java From burstkit4j with Apache License 2.0 | 5 votes |
@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 #8
Source File: TopicApi.java From V2EX with GNU General Public License v3.0 | 4 votes |
@GET("amp/t/{id}/{page}") Observable<String> getTopicAmp(@Path("id") int id, @Path("page") int page);
Example #9
Source File: BtgApi.java From guarda-android-wallets with GNU General Public License v3.0 | 4 votes |
@GET("/blocks/{timeMillis}?format=json") Call<BlockHeightResponse> getCurrentBlockHeight(@Path("timeMillis") String time);
Example #10
Source File: Api.java From android-MVVM-DataBinding-FormExample with MIT License | 4 votes |
@GET("endpoint/{path}") Call<List<String>> getStringWithPath(@Path("path") String path);
Example #11
Source File: ApiService.java From tysq-android with GNU General Public License v3.0 | 4 votes |
/** * 修改文件名称 */ @PUT("files/{file_id}") Single<RespData<Object>> putChangeFilename(@Path("file_id") int fileId, @Body ChangeFilenameReq filenameReq);
Example #12
Source File: ApiInterface.java From Beginner-Level-Android-Studio-Apps with GNU General Public License v3.0 | 4 votes |
@GET("movie/{id}/casts") Call<MovieResponseCasts> getMovieCast(@Path(Constants.JSON_OBJECT_ID) int id, @Query("api_key") String apiKey);
Example #13
Source File: RestClientTest.java From influxdb-client-java with MIT License | 4 votes |
@GET("/flowers/{id}") @Nonnull @Headers("Content-Type: application/text") Call<ResponseBody> findFlowerByID(@Nonnull @Path("id") final String flowerName);
Example #14
Source File: Api.java From TikTok with Apache License 2.0 | 4 votes |
@GET("article/list/{page}/json") Observable<BaseResponse<WanAndroidResponse>> getHomeListError(@Path("page") String page);
Example #15
Source File: ApiInterface.java From Beginner-Level-Android-Studio-Apps with GNU General Public License v3.0 | 4 votes |
@GET("movie/{id}/reviews") Call<MovieResponseReviews> getMovieReviews(@Path(Constants.JSON_OBJECT_ID) int id, @Query("api_key") String apiKey);
Example #16
Source File: HttpBurstNodeService.java From burstkit4j with Apache License 2.0 | 4 votes |
@GET("{endpoint}?requestType=getBlocks") Single<BlocksResponse> getBlocks(@Path("endpoint") String endpoint, @Query("firstIndex") String firstIndex, @Query("lastIndex") String lastIndex, @Query("includeTransactions") String[] transactions);
Example #17
Source File: GastrackerApi.java From guarda-android-wallets with GNU General Public License v3.0 | 4 votes |
@GET("/v1/addr/{address}/transactions") //Call<List<TransactionResponse>> getTransactions(@Path("address") String address); Call<Object> getTransactions(@Path("address") String address);
Example #18
Source File: HaprampAPI.java From 1Rramp-Android with MIT License | 4 votes |
@DELETE("micro-communities/{micro_community_tag}/join") Call<AppServerUserModel> leaveCommunity(@Path("micro_community_tag") String mc_id);
Example #19
Source File: RetrofitService.java From WanAndroid with Apache License 2.0 | 4 votes |
@POST(Api.COLLECT_ARTICLE+"{id}/json") Observable<Status> collectArticle(@Path("id") int id);
Example #20
Source File: MeiZiTuServiceApi.java From v9porn with MIT License | 4 votes |
@Headers({"Referer: " + Api.APP_MEIZITU_DOMAIN, "Domain-Name: " + Api.MEI_ZI_TU_DOMAIN_NAME}) @GET("taiwan/page/{page}/") Observable<String> meiZiTuJaiwan(@Path("page") int page);
Example #21
Source File: WanAndroidService.java From playa with MIT License | 4 votes |
@GET("project/list/{page}/json") Observable<BaseResponse<ArticleListResponse>> getProjectArticles( @Path("page") int page, @Query("cid") int cid );
Example #22
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@GET("user/{username}/comments.json?raw_json=1") Call<String> getUserCommentsOauth(@HeaderMap Map<String, String> headers, @Path("username") String username, @Query("after") String after, @Query("sort") String sortType, @Query("t") String sortTime);
Example #23
Source File: RedditApi.java From auth with MIT License | 4 votes |
@GET("/user/{username}/comments") Observable<Response<Listing<Content<Comment>>>> fetchComments( @Path("username") String username);
Example #24
Source File: MeiZiTuServiceApi.java From v9porn with MIT License | 4 votes |
@Headers({"Referer: " + Api.APP_MEIZITU_DOMAIN, "Domain-Name: " + Api.MEI_ZI_TU_DOMAIN_NAME}) @GET("{id}") Observable<String> meiZiTuImageList(@Path("id") int id);
Example #25
Source File: AppApi.java From Pixiv-Shaft with MIT License | 4 votes |
@GET("v1/trending-tags/{type}?filter=for_android&include_translated_tag_results=true") Observable<ListTrendingtag> getHotTags(@Header("Authorization") String token, @Path("type") String type);
Example #26
Source File: Api.java From PlusDemo with Apache License 2.0 | 4 votes |
@GET("users/{username}") Single<User> getUser(@Path("username") String username);
Example #27
Source File: ApiService.java From youqu_master with Apache License 2.0 | 4 votes |
@GET("nc/video/list/{type}/n/{startPage}-10.html") Observable<Map<String, List<VideoData>>> getVideoList( @Header("Cache-Control") String cacheControl, @Path("type") String type, @Path("startPage") int startPage);
Example #28
Source File: SampleApiService.java From Gander with Apache License 2.0 | 4 votes |
@GET("/cache/{seconds}") Call<Void> cache(@Path("seconds") int seconds);
Example #29
Source File: AccountAPIRetrofit.java From kucoin-java-sdk with MIT License | 4 votes |
@GET("api/v1/accounts/{accountId}/holds") Call<KucoinResponse<Pagination<AccountHoldsResponse>>> getAccountHold( @Path("accountId") String accountId, @Query("currentPage") int currentPage, @Query("pageSize") int pageSize);
Example #30
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@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);