Java 类retrofit.http.PUT 实例源码

项目:msf_communique    文件:Interface.java   
@Multipart
@PUT("/appointments/{id}/")
void updateAppointments(@Path("id") long appointmentID,
                        @Part("patient") String patientId,
                        @Part("owner") String owner,
                        @Part("notes") String notes,
                        @Part("appointment_date") String date,
                        @Part("title") String appointmentType,
                        @Part("end_time") String endTime,
                        @Part("start_time") String startTime,
                        Callback<Appointment> serverResponseCallback);
项目:Popdeem-SDK-Android    文件:PopdeemAPI.java   
@PUT(PDAPIConfig.PD_USERS_PATH + "/{id}")
void updateUserLocationAndDeviceTokenWithReferral(
        @Body String emptyBody,
        @Path("id") String id,
        @Query("user[platform]") String platform,
        @Query("user[device_token]") String deviceToken,
        @Query("user[latitude]") String latitude,
        @Query("user[longitude]") String longitude,
        @Query("user[unique_identifier]") String uid,
        @Query("user[referral][referrer_id]") String referrerId,
        @Query("user[referral][type]") String type,
        @Query("user[referral][referrer_app_name]") String referrerAppName,
        @Query("user[referral][request_id]") String requestId,
        @Query("user[third_party_user_token]") String thirdPartyToken,
        Callback<PDUser> callback);
项目:msf_communique    文件:Interface.java   
@Multipart
@PUT("/enrollments/{id}/")
void updateEnrollments(@Path("id") long enrollmentID,
                       @Part("patient") String patient,
                       @Part("comment") String comment,
                       @Part("program") String program,
                       @Part("date_enrolled") String date,
                       Callback<Enrollment> serverResponseCallback);
项目:gitlab-android    文件:GitLab.java   
@FormUrlEncoded
@PUT(API_VERSION + "/projects/{id}/milestones/{milestone_id}")
Call<Milestone> editMilestone(@Path("id") long projectId,
                              @Path("milestone_id") long milestoneId,
                              @Field("title") String title,
                              @Field("description") String description,
                              @Field("due_date") String dueDate);
项目:msf_communique    文件:Interface.java   
@Multipart
@PUT("/events/{id}/")
void updateEvent(@Path("id") long eventID,
               @Part("name") String name,
               @Part("description") String description,
               @Part("event_date") String date,
               @Part("start_time") String startTime,
               @Part("end_time") String endTime,
               Callback<Events> serverResponseCallback);
项目:halyard    文件:DaemonService.java   
@PUT("/v1/config/deployments/{deploymentName}/pubsubs/{pubsubName}/subscriptions/subscription/{subscriptionName}/")
DaemonTask<Halconfig, Void> setSubscription(
    @Path("deploymentName") String deploymentName,
    @Path("pubsubName") String pubsubName,
    @Path("subscriptionName") String subscriptionName,
    @Query("validate") boolean validate,
    @Body Subscription subscription);
项目:RestApiSpringBootExample    文件:SponsorApi.java   
@PUT(MAIN_PATH+"/{idSponsor}")
Call<Status> updateSponsor(@Body Sponsor sponsor, @Path("idSponsor") int idSponsor);
项目:msf_communique    文件:Interface.java   
@Multipart
@PUT("/adverseEventType/{id}/")
void updateAdverseEventType(@Path("id") long adverseEventTypeID,
                            @Part("name") String patientID,
                            @Part("description") String admissionDate,
                            @Part("emergency_contacts") String dischargeDate,
                            Callback<AdverseEvent> serverResponseCallback);
项目:talk-android    文件:TalkApi.java   
@PUT("/stories/{id}")
Observable<Story> updateStory(@Path("id") String id,
                              @Body UpdateStoryRequestData data);
项目:msf_communique    文件:Interface.java   
@Multipart
@PUT("/adverseEvents/{id}/")
void updateAdverseEvent(@Path("id") long adverseEventID,
                        @Part("patient") String patientID,
                        @Part("adverse_event_type") String admissionDate,
                        @Part("event_date") String dischargeDate,
                        @Part("notes") String notes,
                        Callback<AdverseEvent> serverResponseCallback);
项目:msf_communique    文件:Interface.java   
@Multipart
@PUT("/counselling/{id}/")
void updateCounselling(@Path("id") long sessionID,
                       @Part("patient") String patient,
                       @Part("counselling_session_type") String sessionType,
                       @Part("notes") String notes,
                       Callback<Counselling> serverResponseCallback);
项目:halyard    文件:DaemonService.java   
@PUT("/v1/config/deployments/{deploymentName}/providers/{providerName}/accounts/account/{accountName}/")
DaemonTask<Halconfig, Void> setAccount(
    @Path("deploymentName") String deploymentName,
    @Path("providerName") String providerName,
    @Path("accountName") String accountName,
    @Query("validate") boolean validate,
    @Body Account account);
项目:halyard    文件:DaemonService.java   
@PUT("/v1/config/deployments/{deploymentName}/artifactProviders/{providerName}/artifactAccounts/account/{accountName}/")
DaemonTask<Halconfig, Void> setArtifactAccount(
    @Path("deploymentName") String deploymentName,
    @Path("providerName") String providerName,
    @Path("accountName") String accountName,
    @Query("validate") boolean validate,
    @Body ArtifactAccount account);
项目:halyard    文件:DaemonService.java   
@PUT("/v1/config/deployments/{deploymentName}/providers/{providerName}/clusters/cluster/{clusterName}/")
DaemonTask<Halconfig, Void> setCluster(
    @Path("deploymentName") String deploymentName,
    @Path("providerName") String providerName,
    @Path("clusterName") String clusterName,
    @Query("validate") boolean validate,
    @Body Cluster cluster);
项目:msf_communique    文件:Interface.java   
@Multipart
@PUT("/medicalReport/{id}/")
void updateMedicalReport(@Path("id") long reportID,
                         @Part("title") String title,
                         @Part("report_type") String reportType,
                         @Part("patient") String patient,
                         @Part("notes") String notes,
                         Callback<MedicalRecord> serverResponseCallback);
项目:msf_communique    文件:Interface.java   
@Multipart
@PUT("/admissions/{id}/")
void updateAdmissions(@Path("id") long admissionID,
                    @Part("patient") String patientID,
                    @Part("admission_date") String admissionDate,
                    @Part("discharge_date") String dischargeDate,
                    @Part("health_centre") String healthCentre,
                    @Part("notes") String notes,
                    Callback<Admission> serverResponseCallback);
项目:halyard    文件:DaemonService.java   
@PUT("/v1/config/deployments/{deploymentName}/providers/{providerName}/bakery/defaults/baseImage/{baseImageId}/")
DaemonTask<Halconfig, Void> setBaseImage(
    @Path("deploymentName") String deploymentName,
    @Path("providerName") String providerName,
    @Path("baseImageId") String baseImageId,
    @Query("validate") boolean validate,
    @Body BaseImage baseImage);
项目:halyard    文件:DaemonService.java   
@PUT("/v1/config/deployments/{deploymentName}/ci/{ciName}/masters/{masterName}/")
DaemonTask<Halconfig, Void> setMaster(
    @Path("deploymentName") String deploymentName,
    @Path("ciName") String ciName,
    @Path("masterName") String masterName,
    @Query("validate") boolean validate,
    @Body Master master);
项目:msf_communique    文件:Interface.java   
@Multipart
@PUT("/outcome/{id}/")
void updateOutcome(@Path("id") long outcomeID,
                @Part("patient") String patientID,
                 @Part("outcome_type") String outcomeType,
                 @Part("outcome_date") String outcomeDate,
                 @Part("notes") String notes,
                 Callback<Outcome> serverResponseCallback);
项目:msf_communique    文件:Interface.java   
/***
 * section contains all the methods with endpoints to update information on the server
 */
@Multipart
@PUT("/regimen/{id}/")
void updateRegimen(@Path("id") long regimenId,
                   @Part("patient") String patientId,
                   @Part("notes") String notes,
                   @Part("drugs") String[] drugs,
                   @Part("date_started") String startDate,
                   @Part("date_ended") String endDate,
                   Callback<Regimen> serverResponseCallback);
项目:msf_communique    文件:Interface.java   
@Multipart
@PUT("/notifications/{id}/")
void updateNotification(@Path("id") long notificationID,
                   @Part("recipient") String recipientID,
                   @Part("verb") String verb,
                   @Part("unread") String unread,
                    @Part("actor_object_id") String actor,
                   Callback<Notifications> serverResponseCallback);
项目:Re-Collector    文件:CollectorRegistrationService.java   
@PUT("/collectors/{collectorId}")
Response register(@Path("collectorId") String collectorId, @Body CollectorRegistrationRequest request);
项目:Re-Collector    文件:CollectorRegistrationService.java   
@PUT("/system/collectors/{collectorId}")
Response legacyRegister(@Path("collectorId") String collectorId, @Body CollectorRegistrationRequest request);
项目:MADBike    文件:OneSignalApi.java   
@Headers("Content-Type: application/json")
@PUT("/notifications/{id}/") void openedOneSignalPush(@Path("id") String id, @Body OneSignalBody data, Callback<OneSignalResponse> response);
项目:xlight_android_native    文件:ApiDefs.java   
@FormUrlEncoded
@PUT("/v1/devices/{deviceID}")
Response nameDevice(@Path("deviceID") String deviceID,
                    @Field("name") String name);
项目:xlight_android_native    文件:ApiDefs.java   
@FormUrlEncoded
@PUT("/v1/devices/{deviceID}")
Response flashKnownApp(@Path("deviceID") String deviceID,
                       @Field("app") String appName);
项目:xlight_android_native    文件:ApiDefs.java   
@Multipart
@PUT("/v1/devices/{deviceID}")
Response flashFile(@Path("deviceID") String deviceID,
                   @Part("file") TypedOutput file);
项目:aos-MediaLib    文件:Users.java   
/**
 * <b>OAuth Required</b>
 *
 * <p> Update a custom list by sending 1 or more parameters. If you update the list name, the original slug will
 * still be retained so existing references to this list won't break.
 */
@PUT("/users/{username}/lists/{id}")
com.uwetrottmann.trakt.v2.entities.List updateList(
        @Path("username") String username,
        @Path("id") String id,
        @Body com.uwetrottmann.trakt.v2.entities.List list
) throws OAuthUnauthorizedException;
项目:RoadLab-Pro    文件:ApiService.java   
@PUT(Constants.GOOGLE_API_BASE_URL + "/drive/v2/files/{fileId}")
Call<DriveFile> setFileFolder(@Path("fileId") String fileId, @Query("fields") String fields,
                              @Header("Authorization") String authorization, @Body RequestBody data);
项目:talk-android    文件:TalkApi.java   
@PUT("/users/{id}")
Observable<User> updateUser(@Path("id") String userId,
                            @Body UserUpdateData data);
项目:talk-android    文件:TalkApi.java   
@FormUrlEncoded
@PUT("/preferences")
Observable<Preference> updateEmailNotification(@Field("emailNotification") boolean isOn);
项目:RestApiSpringBootExample    文件:PlayerApi.java   
@PUT(MAIN_PATH+"/{idPlayer}")
Call<Status> updatePlayer(@Body Player player, @Path("idPlayer") int idPlayer);
项目:talk-android    文件:TalkApi.java   
@FormUrlEncoded
@PUT("/preferences")
Observable<Preference> updatePushOnWorkTime(
        @Field("pushOnWorkTime") boolean isOn,
        @Field("timezone") String timezone);
项目:talk-android    文件:TalkApi.java   
@PUT("/teams/{id}")
Observable<Team> updateTeam(@Path("id") String teamId,
                            @Body TeamUpdateRequestData data);
项目:RestApiSpringBootExample    文件:StadiumApi.java   
@PUT(MAIN_PATH+"/{idStadium}")
Call<Status> updateStadium(@Body Stadium stadium, @Path("idStadium") int idStadium);
项目:talk-android    文件:TalkApi.java   
@PUT("/rooms/{id}")
Observable<Room> updateRoom(@Path("id") String roomId, @Body RoomUpdateRequestData data);
项目:talk-android    文件:TalkApi.java   
@FormUrlEncoded
@PUT("/messages/{id}")
Observable<Message> updateMessage(@Path("id") String messageId,
                                  @Field(("body")) String body);
项目:talk-android    文件:TalkApi.java   
@PUT("/messages/{messageId}")
Observable<Message> createMessageTag(@Path("messageId") String messageId, @Body MessageAddTagData data);
项目:spree-android    文件:ApiService.java   
@PUT("user/addresses/{id}")
Call<Address> updateAddress(@Path("id") int addressId, @Query("token") String token, @Body Address address);
项目:spree-android    文件:ApiService.java   
@PUT("checkouts/{orderId}/next")
Call<Order> moveToNextState(@Path("orderId") String orderId, @Query("token") String token);