Java 类retrofit.http.PATCH 实例源码

项目:java-hod-client    文件:UserStoreUsersBackend.java   
@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;
项目:spree-android    文件:ApiService.java   
@PATCH("user/profiles/{token}")
Call<User> editUser(@Path("token") String token,@Body User user);
项目:spree-android    文件:ApiService.java   
@PATCH("password/change")
Call<User> changePwd(@Body PasswordChange passwordChange);
项目:spree-android    文件:ApiService.java   
@PATCH("orders/{orderId}/line_items/{id}")
Call<Order> editQuantity(@Path("orderId") String orderId, @Path("id") int id, @Query("token") String token, @Body LineItemWrapper lineItemWrapper);
项目:materialup    文件:ApiService.java   
@Headers("Accept: application/json")
@PATCH("/notifications/viewed")
Observable<ResponseBody> patchNotifications();
项目:yandex-disk-restapi-java    文件:CloudApi.java   
@PATCH("/v1/disk/resources/")
Resource patchResource(@Query("path") String path, @Query("fields") String fields,
                       @Body TypedOutput body)
        throws IOException, ServerIOException;
项目:blockscore-java    文件:BlockscoreRestAdapter.java   
@NotNull
@PATCH("/candidates/{id}")
Candidate updateCandidate(@NotNull @Path("id") final String id, @NotNull @Body final Candidate candidate);
项目:SecureShareLib    文件:UserInterface.java   
@PATCH("/api/{version}/accounts/{id}")
Object updateUser(@Path("version") int version,
                  @Path("id") int id,
                  @Body Object userData);
项目:Android-REST-API-Explorer    文件:PagesService.java   
/**
 * 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
);
项目:scmt-server    文件:CustomerService.java   
/**
 * 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);
项目:scmt-server    文件:UserService.java   
/**
 * 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);
项目:scmt-server    文件:CaseService.java   
/**
 * 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);
项目:scmt-server    文件:CaseService.java   
/**
 * 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);
项目:scmt-server    文件:CaseService.java   
/**
 * 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
 * @param embed what to embed in the response
 * @param fields the fields requested in the response
 * @return a case
 */
@PATCH(CASES_URI + "/{id}")
Call<Case> updateCase(@Path("id") int caseId, @Body Case updatedCase, @Query("embed") Embed embed,
                @Query("fields") Fields fields);
项目:scmt-server    文件:CaseService.java   
/**
 * 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);
项目:scmt-server    文件:CaseService.java   
/**
 * 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);
项目:scmt-server    文件:CaseService.java   
/**
 * Updates a draft
 * @see <a href="http://dev.desk.com/API/cases/#drafts-update">http://dev.desk.com/API/cases/#drafts-update</a>
 *
 * @param caseId the id of the case
 * @param draft the updated draft
 * @return a message
 */
@PATCH(CASES_URI + "/{id}/" + DRAFT_URI)
Call<Message> updateDraft(@Path("id") int caseId, @Body Message draft);
项目:uphold-sdk-android    文件:UserCardService.java   
/**
 * Performs a request to update the card.
 *
 * @param cardId The id of the card.
 * @param updateFields The fields to update.
 * @param callback A callback to receive the request information.
 */

@PATCH("/v0/me/cards/{cardId}")
void update(@Path("cardId") String cardId, @Body HashMap<String, Object> updateFields, Callback<Card> callback);
项目:uphold-sdk-android    文件:UserService.java   
/**
 * Performs a request to update the user values.
 *
 * @param field An {@link HashMap<String, Object>} with the user field to change and the value.
 * @param callback A callback to receive the request information.
 */

@PATCH("/v0/me")
void updateUser(@Body HashMap<String, Object> field, Callback<User> callback);