retrofit.http.PATCH Java Examples

The following examples show how to use retrofit.http.PATCH. 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: ApiService.java    From materialup with Apache License 2.0 4 votes vote down vote up
@Headers("Accept: application/json")
@PATCH("/notifications/viewed")
Observable<ResponseBody> patchNotifications();
 
Example #2
Source File: PagesService.java    From Android-REST-API-Explorer with MIT License 3 votes vote down vote up
/**
 * 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
);
 
Example #3
Source File: UserCardService.java    From uphold-sdk-android with MIT License votes vote down vote up
/**
 * 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);
 
Example #4
Source File: UserService.java    From uphold-sdk-android with MIT License votes vote down vote up
/**
 * 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);