retrofit.http.PUT Java Examples
The following examples show how to use
retrofit.http.PUT.
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: TalkApi.java From talk-android with MIT License | 6 votes |
@FormUrlEncoded @PUT("/rooms/{id}") Observable<Room> updateRoom( @Path("id") String roomId, @Field("topic") String topic, @Field("purpose") String purpose, @Field("color") String color);
Example #2
Source File: ApiService.java From githot with Apache License 2.0 | 5 votes |
@Headers({ "Content-Length: 0", "Accept: application/json" }) @PUT("/user/starred/{user}/{repo}") Observable<Object> starRepo( @Path("user") String user, @Path("repo") String repo, @Query(value = "access_token", encodeValue = true) String accessToken );
Example #3
Source File: DhisApi.java From dhis2-android-dashboard with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Headers("Content-Type: text/plain") @PUT("/interpretations/{interpretationUid}/comments/{commentUid}") Response putInterpretationComment(@Path("interpretationUid") String interpretationUid, @Path("commentUid") String commentUid, @Body TypedString commentText);
Example #4
Source File: TalkApi.java From talk-android with MIT License | 4 votes |
@PUT("/tags/{id}") Observable<Tag> updateTag(@Path("id") String tagId, @Body UpdateTagRequestData data);
Example #5
Source File: TalkApi.java From talk-android with MIT License | 4 votes |
@PUT("/messages/{messageId}") Observable<Message> createMessageTag(@Path("messageId") String messageId, @Body MessageAddTagData data);
Example #6
Source File: ApiService.java From materialup with Apache License 2.0 | 4 votes |
@Headers("Accept: application/json") @PUT("/posts/{pid}/comments/{cid}/unlike") Observable<Comment> unlikedComment(@Path("pid") long pid, @Path("cid") long cid);
Example #7
Source File: ApiService.java From materialup with Apache License 2.0 | 4 votes |
@Headers("Accept: application/json") @PUT("/users/{uid}/unfollow") Observable<Follow> unfollow(@Path("uid") String uid);
Example #8
Source File: ApiService.java From materialup with Apache License 2.0 | 4 votes |
@Headers("Accept: application/json") @PUT("/users/{uid}/follow") Observable<Follow> follow(@Path("uid") String uid);
Example #9
Source File: MattermostService.java From mattermost-android-classic with Apache License 2.0 | 4 votes |
@Headers("X-Requested-With: XMLHttpRequest") @PUT("/api/v4/users/sessions/device") Promise<User> attachDeviceV4(@Body User user);
Example #10
Source File: ApiService.java From droidddle with Apache License 2.0 | 4 votes |
@PUT("/users/{user}/follow") Observable<Response> followUser(@Path("user") String idOrName);
Example #11
Source File: ApiService.java From droidddle with Apache License 2.0 | 4 votes |
@FormUrlEncoded @PUT("/buckets/{id}") Observable<Bucket> editBucket(@Path("id") long id, @Field("name") String name, @Field("description") String description);
Example #12
Source File: ApiService.java From droidddle with Apache License 2.0 | 4 votes |
@FormUrlEncoded @PUT("/buckets/{id}/shots") Observable<Response> addShotToBucket(@Path("id") long id, @Field("shot_id") long shot_id);
Example #13
Source File: ApiService.java From droidddle with Apache License 2.0 | 4 votes |
@FormUrlEncoded @PUT("/shots/{id}/comments/{cid}") Observable<Comment> editShotComments(@Path("id") long id, @Path("cid") long cid, @Field("body") String body);
Example #14
Source File: ApiService.java From droidddle with Apache License 2.0 | 4 votes |
@FormUrlEncoded @PUT("/shots/{id}") Observable<Shot> updateShot(@Path("id") long id, @Field("title") String title, @Field("description") String description, @Field("tags") String tags);
Example #15
Source File: TalkApi.java From talk-android with MIT License | 4 votes |
@PUT("/users/{id}") Observable<User> updateUser(@Path("id") String userId, @Body UserUpdateData data);
Example #16
Source File: DhisApi.java From dhis2-android-dashboard with BSD 3-Clause "New" or "Revised" License | 4 votes |
@PUT("/dashboards/{uid}") @Headers("Content-Type: application/json") Response putDashboard(@Path("uid") String uid, @Body Dashboard dashboard);
Example #17
Source File: DhisApi.java From dhis2-android-dashboard with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Headers("Content-Type: text/plain") @PUT("/interpretations/{uid}") Response putInterpretationText(@Path("uid") String interpretationUid, @Body TypedString interpretationText);
Example #18
Source File: UserApi.java From phphub-android with Apache License 2.0 | 4 votes |
@PUT("/users/{userId}") Observable<UserEntity.AUser> saveUserProfile(@Path("userId") int userId, @Body User userInfo);
Example #19
Source File: ServiceDiscoveryApi.java From Ratel with Apache License 2.0 | 4 votes |
@PUT("/service/{service}") Response collectStatistics(@Path("service") String address, @Body Map<String, Map<String, String>> statistics);
Example #20
Source File: GithubService.java From WeGit with Apache License 2.0 | 4 votes |
@PUT("/user/starred/{owner}/{repo}") Call<Empty> star(@Path("owner") String owner, @Path("repo") String repo);
Example #21
Source File: GithubService.java From WeGit with Apache License 2.0 | 4 votes |
@PUT("/user/following/{username}") Observable<Response<Empty>> follow(@Path("username") String username);
Example #22
Source File: ApiDefs.java From spark-sdk-android with Apache License 2.0 | 4 votes |
@FormUrlEncoded @PUT("/v1/devices/{deviceID}") Response nameDevice(@Path("deviceID") String deviceID, @Field("name") String name);
Example #23
Source File: ApiDefs.java From spark-sdk-android with Apache License 2.0 | 4 votes |
@FormUrlEncoded @PUT("/v1/devices/{deviceID}") Response flashKnownApp(@Path("deviceID") String deviceID, @Field("app") String appName);
Example #24
Source File: ApiDefs.java From spark-sdk-android with Apache License 2.0 | 4 votes |
@Multipart @PUT("/v1/devices/{deviceID}") Response flashFile(@Path("deviceID") String deviceID, @Part("file") TypedOutput file);
Example #25
Source File: GoogleTaskApiService.java From SyncManagerAndroid-DemoGoogleTasks with MIT License | 4 votes |
@PUT("/lists/{taskListId}/tasks/{taskId}?key="+API_KEY) Task put(@Path("taskListId") String taskListId, @Path("taskId") String taskId, @Body Task task);
Example #26
Source File: BgReadingInterface.java From xDrip with GNU General Public License v3.0 | 4 votes |
@PUT("/api/v1/users/{user_uuid}/BgReading/{bgReading_uuid}") void updateReading(@Path("user_uuid") String user_uuid, @Path("bgReading_uuid") String uuid, @Body BgReading bgReading, Callback callback);
Example #27
Source File: AbelanaClient.java From Abelana-Android with Apache License 2.0 | 4 votes |
@PUT("/user/{atok}/following/{personid}") void addFriend( @Path("atok") String atok, @Path("personid") String personid, Callback<Status> callback );
Example #28
Source File: AbelanaClient.java From Abelana-Android with Apache License 2.0 | 4 votes |
@PUT("/user/{atok}/follow/{email}") void follow( @Path("atok") String atok, @Path("email") String email, Callback<Status> callback );
Example #29
Source File: AbelanaClient.java From Abelana-Android with Apache License 2.0 | 4 votes |
@PUT("/user/{atok}/device/{regid}") void register( @Path("atok") String atok, @Path("regid") String regid, Callback<Status> callback );
Example #30
Source File: AbelanaClient.java From Abelana-Android with Apache License 2.0 | 4 votes |
@PUT("/photo/{atok}/{photoid}/like") void like( @Path("atok") String atok, @Path("photoid") String photoid, Callback<Status> callback );