retrofit2.http.PUT类的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(8.7k)|赞(0)|评价(0)|浏览(195)

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

PUT介绍

暂无

代码示例

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

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

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

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policy.v2016_12_01.PolicyAssignments createById" })
@PUT("{policyAssignmentId}")
Observable<Response<ResponseBody>> createById(@Path(value = "policyAssignmentId", encoded = true) String policyAssignmentId, @Body PolicyAssignmentInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

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

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

代码示例来源:origin: Graylog2/graylog2-server

@PUT("system/lbstatus/override/{status}")
  Call<Void> override(@Path("status") String status);
}

代码示例来源:origin: jgilfelt/chuck

@PUT("/put")
Call<Void> put(@Body Data body);
@DELETE("/delete")

代码示例来源:origin: Graylog2/graylog2-server

@PUT("system/processing/resume")
  Call<Void> resume();
}

代码示例来源:origin: square/retrofit

parseHttpMethodAndPath("POST", ((POST) annotation).value(), true);
} else if (annotation instanceof PUT) {
 parseHttpMethodAndPath("PUT", ((PUT) annotation).value(), true);
} else if (annotation instanceof OPTIONS) {
 parseHttpMethodAndPath("OPTIONS", ((OPTIONS) annotation).value(), false);
 parseHttpMethodAndPath(http.method(), http.path(), http.hasBody());
} else if (annotation instanceof retrofit2.http.Headers) {
 String[] headersToParse = ((retrofit2.http.Headers) annotation).value();
 if (headersToParse.length == 0) {
  throw methodError(method, "@Headers annotation is empty.");

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

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

代码示例来源: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: Graylog2/graylog2-server

@PUT("system/inputstates/{inputId}")
Call<InputCreated> start(@Path("inputId") String inputId);

代码示例来源:origin: Graylog2/graylog2-server

@PUT("system/processing/pause")
Call<Void> pause();

代码示例来源:origin: com.squareup.retrofit2/retrofit

parseHttpMethodAndPath("POST", ((POST) annotation).value(), true);
} else if (annotation instanceof PUT) {
 parseHttpMethodAndPath("PUT", ((PUT) annotation).value(), true);
} else if (annotation instanceof OPTIONS) {
 parseHttpMethodAndPath("OPTIONS", ((OPTIONS) annotation).value(), false);
 parseHttpMethodAndPath(http.method(), http.path(), http.hasBody());
} else if (annotation instanceof retrofit2.http.Headers) {
 String[] headersToParse = ((retrofit2.http.Headers) annotation).value();
 if (headersToParse.length == 0) {
  throw methodError(method, "@Headers annotation is empty.");

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

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.PolicySetDefinitions createOrUpdate" })
@PUT("subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}")
Observable<Response<ResponseBody>> createOrUpdate(@Path("policySetDefinitionName") String policySetDefinitionName, @Path("subscriptionId") String subscriptionId, @Body PolicySetDefinitionInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

代码示例来源:origin: Graylog2/graylog2-server

@PUT("system/loggers/subsystems/{subsystem}/level/{level}")
Call<Void> setSubsystemLoggerLevel(@Path("subsystem") String subsystemTitle, @Path("level") String level);

代码示例来源:origin: Graylog2/graylog2-server

@PUT("system/loggers/{loggerName}/level/{level}")
Call<Void> setSingleLoggerLevel(String loggerName, String level);

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

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.PolicySetDefinitions createOrUpdateAtManagementGroup" })
@PUT("providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}")
Observable<Response<ResponseBody>> createOrUpdateAtManagementGroup(@Path("policySetDefinitionName") String policySetDefinitionName, @Path("managementGroupId") String managementGroupId, @Body PolicySetDefinitionInner parameters, @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.PolicyDefinitions createOrUpdate" })
@PUT("subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}")
Observable<Response<ResponseBody>> createOrUpdate(@Path("policyDefinitionName") String policyDefinitionName, @Path("subscriptionId") String subscriptionId, @Body PolicyDefinitionInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

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

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.monitor.DiagnosticSettings createOrUpdate" })
@PUT("{resourceUri}/providers/microsoft.insights/diagnosticSettings/{name}")
Observable<Response<ResponseBody>> createOrUpdate(@Path(value = "resourceUri", encoded = true) String resourceUri, @Path("name") String name, @Query("api-version") String apiVersion, @Body DiagnosticSettingsResourceInner parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

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

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

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

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.policy.v2016_12_01.PolicyAssignments create" })
@PUT("{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}")
Observable<Response<ResponseBody>> create(@Path(value = "scope", encoded = true) String scope, @Path("policyAssignmentName") String policyAssignmentName, @Body PolicyAssignmentInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

相关文章

PUT类方法