retrofit2.http.Path.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(9.6k)|赞(0)|评价(0)|浏览(69)

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

Path.<init>介绍

暂无

代码示例

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

@Headers("Accept: application/geo+json")
 @GET("/points/{lat},{lon}/forecast")
 Call<WeatherResponse> getForecast(@Path("lat") double latitude,
                  @Path("lon") double longitude);
}

代码示例来源:origin: jaydenxiao2016/AndroidFire

@GET("nc/article/{type}/{id}/{startPage}-20.html")
Observable<Map<String, List<NewsSummary>>> getNewsList(
    @Header("Cache-Control") String cacheControl,
    @Path("type") String type, @Path("id") String id,
    @Path("startPage") int startPage);

代码示例来源:origin: smuyyh/BookReader

/**
 * 获取书评区、书荒区帖子详情内的评论列表
 *
 * @param bookReviewId->_id
 * @param start             0
 * @param limit             30
 * @return
 */
@GET("/post/review/{bookReviewId}/comment")
Observable<CommentList> getBookReviewComments(@Path("bookReviewId") String bookReviewId, @Query("start") String start, @Query("limit") String limit);

代码示例来源:origin: com.microsoft.azure/azure-mgmt-network

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.PublicIPAddresses getVirtualMachineScaleSetPublicIPAddress" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}")
Observable<Response<ResponseBody>> getVirtualMachineScaleSetPublicIPAddress(@Path("resourceGroupName") String resourceGroupName, @Path("virtualMachineScaleSetName") String virtualMachineScaleSetName, @Path("virtualmachineIndex") String virtualmachineIndex, @Path("networkInterfaceName") String networkInterfaceName, @Path("ipConfigurationName") String ipConfigurationName, @Path("publicIpAddressName") String publicIpAddressName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

代码示例来源:origin: com.microsoft.azure/azure-mgmt-resources

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.Resources beginUpdate" })
@PATCH("subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}")
Observable<Response<ResponseBody>> beginUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("resourceProviderNamespace") String resourceProviderNamespace, @Path(value = "parentResourcePath", encoded = true) String parentResourcePath, @Path(value = "resourceType", encoded = true) String resourceType, @Path("resourceName") String resourceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Body GenericResourceInner parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

代码示例来源:origin: north2016/T-MVP

@Headers("Content-Type: image/png")
@POST("files/{name}")
Flowable<CreatedResult> upFile(@Path("name") String name, @Body RequestBody body);

代码示例来源:origin: allure-framework/allure2

@PUT("raven/1.0/api/testrun/{id}/status")
Response<ResponseBody> updateTestRunStatus(@Path("id") Integer id, @Query("status") String status);

代码示例来源:origin: north2016/T-MVP

@PUT("users/{uid}")
Flowable<CreatedResult> upUser(@Header("X-LC-Session") String session, @Path("uid") String uid, @Body Face face);

代码示例来源:origin: ribot/ribot-app-android

@POST("/beacons/{beaconId}/encounters")
Observable<Encounter> performBeaconEncounter(@Header(AUTH_HEADER) String authorization,
                @Path("beaconId") String beaconId);

代码示例来源:origin: com.microsoft.azure/azure-mgmt-network

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCircuitAuthorizations get" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}")
Observable<Response<ResponseBody>> get(@Path("resourceGroupName") String resourceGroupName, @Path("circuitName") String circuitName, @Path("authorizationName") String authorizationName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

代码示例来源:origin: com.microsoft.azure/azure-mgmt-resources

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.Resources createOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}")
Observable<Response<ResponseBody>> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("resourceProviderNamespace") String resourceProviderNamespace, @Path(value = "parentResourcePath", encoded = true) String parentResourcePath, @Path(value = "resourceType", encoded = true) String resourceType, @Path("resourceName") String resourceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Body GenericResourceInner parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

代码示例来源:origin: smuyyh/BookReader

/**
 * 获取综合讨论区帖子详情内的评论列表
 *
 * @param disscussionId->_id
 * @param start              0
 * @param limit              30
 * @return
 */
@GET("/post/{disscussionId}/comment")
Observable<CommentList> getBookDisscussionComments(@Path("disscussionId") String disscussionId, @Query("start") String start, @Query("limit") String limit);

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

@Headers("Accept: application/geo+json")
 @GET("/points/{lat},{lon}/forecast")
 Call<WeatherResponse> getForecast(@Path("lat") double latitude,
                  @Path("lon") double longitude);
}

代码示例来源:origin: jaydenxiao2016/AndroidFire

@GET("data/福利/{size}/{page}")
Observable<GirlData> getPhotoList(
    @Header("Cache-Control") String cacheControl,
    @Path("size") int size,
    @Path("page") int page);

代码示例来源:origin: ribot/ribot-app-android

@PUT("check-ins/{checkInId}")
Observable<CheckIn> updateCheckIn(@Header(AUTH_HEADER) String authorization,
                 @Path("checkInId") String checkInId,
                 @Body UpdateCheckInRequest updateCheckInRequest);

代码示例来源:origin: com.microsoft.azure/azure-mgmt-network

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.PacketCaptures get" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}")
Observable<Response<ResponseBody>> get(@Path("resourceGroupName") String resourceGroupName, @Path("networkWatcherName") String networkWatcherName, @Path("packetCaptureName") String packetCaptureName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

代码示例来源:origin: com.microsoft.azure/azure-mgmt-storage

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.StorageAccounts listServiceSAS" })
@POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas")
Observable<Response<ResponseBody>> listServiceSAS(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("subscriptionId") String subscriptionId, @Body ServiceSasParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

代码示例来源:origin: smuyyh/BookReader

@GET("/mix-atoc/{bookId}")
Observable<BookMixAToc> getBookMixAToc(@Path("bookId") String bookId, @Query("view") String view);

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

@Headers("Accept: application/geo+json")
 @GET("/points/{lat},{lon}/forecast")
 Call<WeatherResponse> getForecast(@Path("lat") double latitude,
                  @Path("lon") double longitude);
}

代码示例来源:origin: jaydenxiao2016/AndroidFire

@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);
}

相关文章

微信公众号

最新文章

更多

Path类方法