当前位置: 首页>>代码示例>>Java>>正文


Java PATCH类代码示例

本文整理汇总了Java中retrofit.http.PATCH的典型用法代码示例。如果您正苦于以下问题:Java PATCH类的具体用法?Java PATCH怎么用?Java PATCH使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


PATCH类属于retrofit.http包,在下文中一共展示了PATCH类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addUserMetadata

import retrofit.http.PATCH; //导入依赖的package包/类
@PATCH(METADATA_BASE_PATH + V1)
@Multipart
Response addUserMetadata(
    @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token,
    @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore,
    @Path(USER_UUID_VARIABLE) UUID userUuid,
    @Part("metadata") List<Metadata<?>> metadata
) throws HodErrorException;
 
开发者ID:hpe-idol,项目名称:java-hod-client,代码行数:9,代码来源:UserStoreUsersBackend.java

示例2: editUser

import retrofit.http.PATCH; //导入依赖的package包/类
@PATCH("user/profiles/{token}")
Call<User> editUser(@Path("token") String token,@Body User user);
 
开发者ID:vinsol-spree-contrib,项目名称:spree-android,代码行数:3,代码来源:ApiService.java

示例3: changePwd

import retrofit.http.PATCH; //导入依赖的package包/类
@PATCH("password/change")
Call<User> changePwd(@Body PasswordChange passwordChange);
 
开发者ID:vinsol-spree-contrib,项目名称:spree-android,代码行数:3,代码来源:ApiService.java

示例4: editQuantity

import retrofit.http.PATCH; //导入依赖的package包/类
@PATCH("orders/{orderId}/line_items/{id}")
Call<Order> editQuantity(@Path("orderId") String orderId, @Path("id") int id, @Query("token") String token, @Body LineItemWrapper lineItemWrapper);
 
开发者ID:vinsol-spree-contrib,项目名称:spree-android,代码行数:3,代码来源:ApiService.java

示例5: patchNotifications

import retrofit.http.PATCH; //导入依赖的package包/类
@Headers("Accept: application/json")
@PATCH("/notifications/viewed")
Observable<ResponseBody> patchNotifications();
 
开发者ID:goodev,项目名称:materialup,代码行数:4,代码来源:ApiService.java

示例6: patchResource

import retrofit.http.PATCH; //导入依赖的package包/类
@PATCH("/v1/disk/resources/")
Resource patchResource(@Query("path") String path, @Query("fields") String fields,
                       @Body TypedOutput body)
        throws IOException, ServerIOException;
 
开发者ID:yandex-disk,项目名称:yandex-disk-restapi-java,代码行数:5,代码来源:CloudApi.java

示例7: updateCandidate

import retrofit.http.PATCH; //导入依赖的package包/类
@NotNull
@PATCH("/candidates/{id}")
Candidate updateCandidate(@NotNull @Path("id") final String id, @NotNull @Body final Candidate candidate);
 
开发者ID:BlockScore,项目名称:blockscore-java,代码行数:4,代码来源:BlockscoreRestAdapter.java

示例8: updateUser

import retrofit.http.PATCH; //导入依赖的package包/类
@PATCH("/api/{version}/accounts/{id}")
Object updateUser(@Path("version") int version,
                  @Path("id") int id,
                  @Body Object userData);
 
开发者ID:StoryMaker,项目名称:SecureShareLib,代码行数:5,代码来源:UserInterface.java

示例9: patchPage

import retrofit.http.PATCH; //导入依赖的package包/类
/**
 * Appends new content to an existing page
 * specified by page id
 *
 * Note: This passes a blank Accept-Encoding header to
 * work around a known issue with the PATCH on this OneNote API
 *
 * @param encoding
 * @param version
 * @param pageId
 * @param body
 * @param callback
 */
@PATCH("/{version}/me/notes/pages/{pageId}/content")
void patchPage(
        @Header("Accept-Encoding") String encoding,
        @Path("version") String version,
        @Path("pageId") String pageId,
        @Body TypedString body,
        Callback<Envelope<Page>> callback
);
 
开发者ID:OneNoteDev,项目名称:Android-REST-API-Explorer,代码行数:22,代码来源:PagesService.java

示例10: updateCustomer

import retrofit.http.PATCH; //导入依赖的package包/类
/**
 * Updates a customer
 * @see <a href="http://dev.desk.com/API/customers/#update">http://dev.desk.com/API/customers/#update</a>
 *
 * @param customerId the customer id
 * @param updatedCustomer the updated customer
 * @return a customer
 */
@PATCH(CUSTOMERS_URI + "/{id}")
Call<Customer> updateCustomer(@Path("id") int customerId, @Body Customer updatedCustomer);
 
开发者ID:forcedotcom,项目名称:scmt-server,代码行数:11,代码来源:CustomerService.java

示例11: updateMobileDeviceSetting

import retrofit.http.PATCH; //导入依赖的package包/类
/**
 * Update a mobile device setting
 * @see <a href="http://dev.desk.com/API/users/#mobile-devices-settings-update">http://dev.desk.com/API/users/#mobile-devices-settings-update</a>
 *
 * @param userId the user id
 * @param deviceId the device id
 * @param settingId the setting id
 * @param update the setting update body
 * @return a setting
 */
@PATCH(USERS_URI + "/{userId}/" + MOBILE_DEVICES_URI + "/{deviceId}/" + SETTINGS_URI + "/{settingId}")
Call<Setting> updateMobileDeviceSetting(@Path("userId") int userId, @Path("deviceId") int deviceId,
                               @Path("settingId") int settingId, @Body SettingUpdate update);
 
开发者ID:forcedotcom,项目名称:scmt-server,代码行数:14,代码来源:UserService.java

示例12: updateCaseLock

import retrofit.http.PATCH; //导入依赖的package包/类
/**
 * Locks or unlocks a case
 * @see <a href="http://dev.desk.com/API/cases/#update">http://dev.desk.com/API/cases/#update</a>
 *
 * @param caseId the id of the case
 * @param caseLock the case lock
 * @return a case
 */
@PATCH(CASES_URI + "/{id}")
Call<Case> updateCaseLock(@Path("id") int caseId, @Body CaseLock caseLock);
 
开发者ID:forcedotcom,项目名称:scmt-server,代码行数:11,代码来源:CaseService.java

示例13: updateCase

import retrofit.http.PATCH; //导入依赖的package包/类
/**
 * Updates a case
 * @see <a href="http://dev.desk.com/API/cases/#update">http://dev.desk.com/API/cases/#update</a>
 *
 * @param caseId the id of the case
 * @param updatedCase the updated case
 * @return a case
 */
@PATCH(CASES_URI + "/{id}")
Call<Case> updateCase(@Path("id") int caseId, @Body Case updatedCase);
 
开发者ID:forcedotcom,项目名称:scmt-server,代码行数:11,代码来源:CaseService.java

示例14: updateCaseMessage

import retrofit.http.PATCH; //导入依赖的package包/类
/**
 * Updates a case message
 * @see <a href="http://dev.desk.com/API/cases/#message-update">http://dev.desk.com/API/cases/#message-update</a>
 *
 * @param caseId the id of the case
 * @param updatedMessage the updated message
 * @return a message
 */
@PATCH(CASES_URI + "/{id}/message")
Call<Message> updateCaseMessage(@Path("id") int caseId, @Body Message updatedMessage);
 
开发者ID:forcedotcom,项目名称:scmt-server,代码行数:11,代码来源:CaseService.java

示例15: updateCaseReply

import retrofit.http.PATCH; //导入依赖的package包/类
/**
 * Updates a case reply
 * @see <a href="http://dev.desk.com/API/cases/#replies-update">http://dev.desk.com/API/cases/#replies-update</a>
 *
 * @param caseId the id of the case
 * @param replyId the id of the reply
 * @param updatedReply the updated reply
 * @return a message
 */
@PATCH(CASES_URI + "/{caseId}/" + REPLIES_URI + "/{replyId}")
Call<Message> updateCaseReply(@Path("caseId") int caseId, @Path("replyId") int replyId, @Body Message updatedReply);
 
开发者ID:forcedotcom,项目名称:scmt-server,代码行数:12,代码来源:CaseService.java


注:本文中的retrofit.http.PATCH类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。