Java Code Examples for retrofit2.http.PartMap

The following are top voted examples for showing how to use retrofit2.http.PartMap. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 6 votes vote down vote up
@Test public void multipartPartMapRejectsNonStringKeys() {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap Map<Object, RequestBody> parts) {
      return null;
    }
  }

  try {
    buildRequest(Example.class, new Object[] { null });
    fail();
  } catch (IllegalArgumentException e) {
    assertThat(e).hasMessage(
        "@PartMap keys must be of type String: class java.lang.Object (parameter #1)\n"
            + "    for method Example.method");
  }
}
 
Example 2
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 6 votes vote down vote up
@Test public void multipartPartMapRejectsOkHttpPartValues() {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap Map<String, MultipartBody.Part> parts) {
      return null;
    }
  }

  try {
    buildRequest(Example.class, new Object[] { null });
    fail();
  } catch (IllegalArgumentException e) {
    assertThat(e).hasMessage(
        "@PartMap values cannot be MultipartBody.Part. Use @Part List<Part> or a different value type instead. (parameter #1)\n"
            + "    for method Example.method");
  }
}
 
Example 3
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 6 votes vote down vote up
@Test public void multipartPartMapRejectsNull() {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap Map<String, RequestBody> parts) {
      return null;
    }
  }

  try {
    buildRequest(Example.class, new Object[] { null });
    fail();
  } catch (IllegalArgumentException e) {
    assertThat(e).hasMessage("Part map was null.");
  }
}
 
Example 4
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 6 votes vote down vote up
@Test public void multipartPartMapRejectsNullKeys() {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap Map<String, RequestBody> parts) {
      return null;
    }
  }

  Map<String, RequestBody> params = new LinkedHashMap<>();
  params.put("ping", RequestBody.create(null, "pong"));
  params.put(null, RequestBody.create(null, "kat"));

  try {
    buildRequest(Example.class, params);
    fail();
  } catch (IllegalArgumentException e) {
    assertThat(e).hasMessage("Part map contained null key.");
  }
}
 
Example 5
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 6 votes vote down vote up
@Test public void multipartPartMapRejectsNullValues() {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap Map<String, RequestBody> parts) {
      return null;
    }
  }

  Map<String, RequestBody> params = new LinkedHashMap<>();
  params.put("ping", RequestBody.create(null, "pong"));
  params.put("kit", null);

  try {
    buildRequest(Example.class, params);
    fail();
  } catch (IllegalArgumentException e) {
    assertThat(e).hasMessage("Part map contained null value for key 'kit'.");
  }
}
 
Example 6
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 6 votes vote down vote up
@Test public void multipartPartMapMustBeMap() {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap List<Object> parts) {
      return null;
    }
  }

  try {
    buildRequest(Example.class, Collections.emptyList());
    fail();
  } catch (IllegalArgumentException e) {
    assertThat(e).hasMessage(
        "@PartMap parameter type must be Map. (parameter #1)\n    for method Example.method");
  }
}
 
Example 7
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 6 votes vote down vote up
@Test public void multipartPartMapSupportsSubclasses() throws IOException {
  class Foo extends HashMap<String, String> {
  }

  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap Foo parts) {
      return null;
    }
  }

  Foo foo = new Foo();
  foo.put("hello", "world");

  Request request = buildRequest(Example.class, foo);
  Buffer buffer = new Buffer();
  request.body().writeTo(buffer);
  assertThat(buffer.readUtf8())
      .contains("name=\"hello\"")
      .contains("\r\n\r\nworld\r\n--");
}
 
Example 8
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 6 votes vote down vote up
@Test public void multipartPartMapRejectsNonStringKeys() {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap Map<Object, RequestBody> parts) {
      return null;
    }
  }

  try {
    buildRequest(Example.class, new Object[] { null });
    fail();
  } catch (IllegalArgumentException e) {
    assertThat(e).hasMessage(
        "@PartMap keys must be of type String: class java.lang.Object (parameter #1)\n"
            + "    for method Example.method");
  }
}
 
Example 9
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 6 votes vote down vote up
@Test public void multipartPartMapRejectsOkHttpPartValues() {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap Map<String, MultipartBody.Part> parts) {
      return null;
    }
  }

  try {
    buildRequest(Example.class, new Object[] { null });
    fail();
  } catch (IllegalArgumentException e) {
    assertThat(e).hasMessage(
        "@PartMap values cannot be MultipartBody.Part. Use @Part List<Part> or a different value type instead. (parameter #1)\n"
            + "    for method Example.method");
  }
}
 
Example 10
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 6 votes vote down vote up
@Test public void multipartPartMapRejectsNull() {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap Map<String, RequestBody> parts) {
      return null;
    }
  }

  try {
    buildRequest(Example.class, new Object[] { null });
    fail();
  } catch (IllegalArgumentException e) {
    assertThat(e).hasMessage("Part map was null.");
  }
}
 
Example 11
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 6 votes vote down vote up
@Test public void multipartPartMapRejectsNullKeys() {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap Map<String, RequestBody> parts) {
      return null;
    }
  }

  Map<String, RequestBody> params = new LinkedHashMap<>();
  params.put("ping", RequestBody.create(null, "pong"));
  params.put(null, RequestBody.create(null, "kat"));

  try {
    buildRequest(Example.class, params);
    fail();
  } catch (IllegalArgumentException e) {
    assertThat(e).hasMessage("Part map contained null key.");
  }
}
 
Example 12
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 6 votes vote down vote up
@Test public void multipartPartMapRejectsNullValues() {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap Map<String, RequestBody> parts) {
      return null;
    }
  }

  Map<String, RequestBody> params = new LinkedHashMap<>();
  params.put("ping", RequestBody.create(null, "pong"));
  params.put("kit", null);

  try {
    buildRequest(Example.class, params);
    fail();
  } catch (IllegalArgumentException e) {
    assertThat(e).hasMessage("Part map contained null value for key 'kit'.");
  }
}
 
Example 13
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 6 votes vote down vote up
@Test public void multipartPartMapMustBeMap() {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap List<Object> parts) {
      return null;
    }
  }

  try {
    buildRequest(Example.class, Collections.emptyList());
    fail();
  } catch (IllegalArgumentException e) {
    assertThat(e).hasMessage(
        "@PartMap parameter type must be Map. (parameter #1)\n    for method Example.method");
  }
}
 
Example 14
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 6 votes vote down vote up
@Test public void multipartPartMapSupportsSubclasses() throws IOException {
  class Foo extends HashMap<String, String> {
  }

  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap Foo parts) {
      return null;
    }
  }

  Foo foo = new Foo();
  foo.put("hello", "world");

  Request request = buildRequest(Example.class, foo);
  Buffer buffer = new Buffer();
  request.body().writeTo(buffer);
  assertThat(buffer.readUtf8())
      .contains("name=\"hello\"")
      .contains("\r\n\r\nworld\r\n--");
}
 
Example 15
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 5 votes vote down vote up
@Test public void implicitMultipartWithPartMapForbidden() {
  class Example {
    @POST("/") //
    Call<ResponseBody> method(@PartMap Map<String, String> params) {
      return null;
    }
  }
  try {
    buildRequest(Example.class);
    fail();
  } catch (IllegalArgumentException e) {
    assertThat(e).hasMessage(
        "@PartMap parameters can only be used with multipart encoding. (parameter #1)\n    for method Example.method");
  }
}
 
Example 16
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 5 votes vote down vote up
@Test public void multipartPartMap() throws IOException {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap Map<String, RequestBody> parts) {
      return null;
    }
  }

  Map<String, RequestBody> params = new LinkedHashMap<>();
  params.put("ping", RequestBody.create(null, "pong"));
  params.put("kit", RequestBody.create(null, "kat"));

  Request request = buildRequest(Example.class, params);
  assertThat(request.method()).isEqualTo("POST");
  assertThat(request.headers().size()).isZero();
  assertThat(request.url().toString()).isEqualTo("http://example.com/foo/bar/");

  RequestBody body = request.body();
  Buffer buffer = new Buffer();
  body.writeTo(buffer);
  String bodyString = buffer.readUtf8();

  assertThat(bodyString)
      .contains("Content-Disposition: form-data;")
      .contains("name=\"ping\"\r\n")
      .contains("\r\npong\r\n--");

  assertThat(bodyString)
      .contains("Content-Disposition: form-data;")
      .contains("name=\"kit\"")
      .contains("\r\nkat\r\n--");
}
 
Example 17
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 5 votes vote down vote up
@Test public void multipartPartMapWithEncoding() throws IOException {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap(encoding = "8-bit") Map<String, RequestBody> parts) {
      return null;
    }
  }

  Map<String, RequestBody> params = new LinkedHashMap<>();
  params.put("ping", RequestBody.create(null, "pong"));
  params.put("kit", RequestBody.create(null, "kat"));

  Request request = buildRequest(Example.class, params);
  assertThat(request.method()).isEqualTo("POST");
  assertThat(request.headers().size()).isZero();
  assertThat(request.url().toString()).isEqualTo("http://example.com/foo/bar/");

  RequestBody body = request.body();
  Buffer buffer = new Buffer();
  body.writeTo(buffer);
  String bodyString = buffer.readUtf8();

  assertThat(bodyString)
      .contains("Content-Disposition: form-data;")
      .contains("name=\"ping\"\r\n")
      .contains("Content-Transfer-Encoding: 8-bit")
      .contains("\r\npong\r\n--");

  assertThat(bodyString)
      .contains("Content-Disposition: form-data;")
      .contains("name=\"kit\"")
      .contains("Content-Transfer-Encoding: 8-bit")
      .contains("\r\nkat\r\n--");
}
 
Example 18
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 5 votes vote down vote up
@Test public void implicitMultipartWithPartMapForbidden() {
  class Example {
    @POST("/") //
    Call<ResponseBody> method(@PartMap Map<String, String> params) {
      return null;
    }
  }
  try {
    buildRequest(Example.class);
    fail();
  } catch (IllegalArgumentException e) {
    assertThat(e).hasMessage(
        "@PartMap parameters can only be used with multipart encoding. (parameter #1)\n    for method Example.method");
  }
}
 
Example 19
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 5 votes vote down vote up
@Test public void multipartPartMap() throws IOException {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap Map<String, RequestBody> parts) {
      return null;
    }
  }

  Map<String, RequestBody> params = new LinkedHashMap<>();
  params.put("ping", RequestBody.create(null, "pong"));
  params.put("kit", RequestBody.create(null, "kat"));

  Request request = buildRequest(Example.class, params);
  assertThat(request.method()).isEqualTo("POST");
  assertThat(request.headers().size()).isZero();
  assertThat(request.url().toString()).isEqualTo("http://example.com/foo/bar/");

  RequestBody body = request.body();
  Buffer buffer = new Buffer();
  body.writeTo(buffer);
  String bodyString = buffer.readUtf8();

  assertThat(bodyString)
      .contains("Content-Disposition: form-data;")
      .contains("name=\"ping\"\r\n")
      .contains("\r\npong\r\n--");

  assertThat(bodyString)
      .contains("Content-Disposition: form-data;")
      .contains("name=\"kit\"")
      .contains("\r\nkat\r\n--");
}
 
Example 20
Project: GitHub   File: RequestBuilderTest.java   Source Code and License 5 votes vote down vote up
@Test public void multipartPartMapWithEncoding() throws IOException {
  class Example {
    @Multipart //
    @POST("/foo/bar/") //
    Call<ResponseBody> method(@PartMap(encoding = "8-bit") Map<String, RequestBody> parts) {
      return null;
    }
  }

  Map<String, RequestBody> params = new LinkedHashMap<>();
  params.put("ping", RequestBody.create(null, "pong"));
  params.put("kit", RequestBody.create(null, "kat"));

  Request request = buildRequest(Example.class, params);
  assertThat(request.method()).isEqualTo("POST");
  assertThat(request.headers().size()).isZero();
  assertThat(request.url().toString()).isEqualTo("http://example.com/foo/bar/");

  RequestBody body = request.body();
  Buffer buffer = new Buffer();
  body.writeTo(buffer);
  String bodyString = buffer.readUtf8();

  assertThat(bodyString)
      .contains("Content-Disposition: form-data;")
      .contains("name=\"ping\"\r\n")
      .contains("Content-Transfer-Encoding: 8-bit")
      .contains("\r\npong\r\n--");

  assertThat(bodyString)
      .contains("Content-Disposition: form-data;")
      .contains("name=\"kit\"")
      .contains("Content-Transfer-Encoding: 8-bit")
      .contains("\r\nkat\r\n--");
}
 
Example 21
Project: Renrentou   File: RegService.java   Source Code and License 5 votes vote down vote up
@POST("user/regist/person")
@Multipart
Flowable<ResponseDto<User>> regPerson(
        @PartMap Map<String, RequestBody> param,
        @Part MultipartBody.Part front,
        @Part MultipartBody.Part back
);
 
Example 22
Project: Renrentou   File: AdService.java   Source Code and License 5 votes vote down vote up
@POST("ad/new")
@Multipart
Flowable<ResponseDto<User>> add(
        @PartMap Map<String, RequestBody> param,
        @Part MultipartBody.Part adFile,
        @Part MultipartBody.Part coverFile
);
 
Example 23
Project: Every-Sample   File: HttpServiceSamples.java   Source Code and License 5 votes vote down vote up
@Multipart
@POST("user")
Observable<BaseBean<String>> array_post(
        /**
         * key: String
         * value:把value用RequestBody包装放到Map中
         */
        @PartMap Map<String, RequestBody> map
);
 
Example 24
Project: Renrentou   File: FileUploadService.java   Source Code and License 4 votes vote down vote up
@POST("file//upload/v1")
@Multipart
Flowable<ResponseDto> add(
        @PartMap Map<String, RequestBody> param,
        @Part MultipartBody.Part file
);
 
Example 25
Project: Renrentou   File: RegService.java   Source Code and License 4 votes vote down vote up
@POST("user/regist/company")
@Multipart
Flowable<ResponseDto<User>> regCompany(
        @PartMap Map<String, RequestBody> param,
        @Part MultipartBody.Part front
);
 
Example 26
Project: Renrentou   File: AdService.java   Source Code and License 4 votes vote down vote up
@POST("ad/new")
@Multipart
Flowable<ResponseDto<User>> add(
        @PartMap Map<String, RequestBody> param,
        @Part MultipartBody.Part adFile
);
 
Example 27
Project: Renrentou   File: AdService.java   Source Code and License 4 votes vote down vote up
@POST("ad/delete")
@Multipart
Flowable<ResponseDto> delete(
        @PartMap Map<String, RequestBody> param
);
 
Example 28
Project: filestack-java   File: UploadService.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST("/multipart/start")
Call<StartResponse> start(@PartMap Map<String, RequestBody> parameters);
 
Example 29
Project: filestack-java   File: UploadService.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST("/multipart/upload")
Call<UploadResponse> upload(@PartMap Map<String, RequestBody> parameters);
 
Example 30
Project: filestack-java   File: UploadService.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST("/multipart/commit")
Call<ResponseBody> commit(@PartMap Map<String, RequestBody> parameters);
 
Example 31
Project: filestack-java   File: UploadService.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST("/multipart/complete")
Call<CompleteResponse> complete(@PartMap Map<String, RequestBody> parameters);
 
Example 32
Project: AndroidBasicLibs   File: ApiService.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST()
Observable<ResponseBody> uploadFiles(@Url() String url, @PartMap() Map<String, RequestBody>
        maps);
 
Example 33
Project: JD-Test   File: BaseApiService.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST
Flowable<ResponseBody> uploadFileWithPartMap(
        @Url() String url,
        @PartMap() Map<String, RequestBody> partMap,
        @Part("file") MultipartBody.Part file);
 
Example 34
Project: RxEasyHttp   File: ApiService.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST()
Observable<ResponseBody> uploadFiles(@Url String url, @PartMap() Map<String, RequestBody> maps);
 
Example 35
Project: xifan   File: ApiFactory.java   Source Code and License 4 votes vote down vote up
@POST(Constants.FanFou.DESTROY_STATUSES_URL)
@Multipart
Observable<HttpResponseData<StatusRes>> destroyStatus(
        @PartMap Map<String, RequestBody> bodyMap);
 
Example 36
Project: xifan   File: ApiFactory.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST(Constants.FanFou.UPDATE_STATUSES_URL)
Observable<HttpResponseData<StatusRes>> updateStatus(@PartMap Map<String, RequestBody> bodyMap);
 
Example 37
Project: xifan   File: ApiFactory.java   Source Code and License 4 votes vote down vote up
@POST(Constants.FanFou.PHOTOS_UPLOAD_URL)
@Multipart
Observable<HttpResponseData<StatusRes>> uploadPhoto(@PartMap Map<String, RequestBody> bodyMap);
 
Example 38
Project: xifan   File: ApiFactory.java   Source Code and License 4 votes vote down vote up
@POST(Constants.FanFou.SEND_DIRECT_MESSAGE_URL)
@Multipart
Observable<HttpResponseData<DirectMessagesRes>> sendDirectMessage(
        @PartMap Map<String, RequestBody> bodyMap);
 
Example 39
Project: xifan   File: ApiFactory.java   Source Code and License 4 votes vote down vote up
@POST(Constants.FanFou.CREATE_FRIENDSHIP_URL)
@Multipart
Observable<HttpResponseData<UserRes>> createFriendship(
        @PartMap Map<String, RequestBody> bodyMap);
 
Example 40
Project: xifan   File: ApiFactory.java   Source Code and License 4 votes vote down vote up
@POST(Constants.FanFou.DESTROY_FRIENDSHIP_URL)
@Multipart
Observable<HttpResponseData<UserRes>> destoryFriendship(
        @PartMap Map<String, RequestBody> bodyMap);
 
Example 41
Project: retrofit-OurRetrofit   File: HttpUtil.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST
Call<String> postUpload(@Url String url, @Part("filedes") String des, @PartMap Map<String, RequestBody> params);
 
Example 42
Project: retrofit-OurRetrofit   File: HttpUtil.java   Source Code and License 4 votes vote down vote up
@Multipart
@GET
Call<String> getUpload(@Url String url, @Part("filedes") String des, @PartMap Map<String, RequestBody> params);
 
Example 43
Project: AvenueNet   File: ClientService.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST
Observable<String> upload(@Url String url, @PartMap Map<String, MultipartBody.Part> files, @HeaderMap Map<String, Object> header);
 
Example 44
Project: AvenueNet   File: ClientService.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST
Observable<String> upload(@Url String url, @PartMap Map<String, RequestBody> params, @Part MultipartBody.Part file, @HeaderMap Map<String, Object> header);
 
Example 45
Project: AvenueNet   File: ClientService.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST
Observable<String> upload(@Url String url, @PartMap Map<String, RequestBody> params, @PartMap Map<String, MultipartBody.Part> files, @HeaderMap Map<String, Object> header);
 
Example 46
Project: Ec2m   File: RetrofitService.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST("mupload")
Call<ResponseBody> upload3(@Part("fileName") String description,
                          @PartMap Map<String,RequestBody> params);
 
Example 47
Project: CommonFramework   File: Networks.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST("/api/upload/photos")
Observable<String> uploadLog(@PartMap Map<String, RequestBody> map);
 
Example 48
Project: CommonFramework   File: Networks.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST("/api/upload/photos")
Observable<String> uploadFiles(@PartMap Map<String, RequestBody> map);
 
Example 49
Project: BizareChat   File: ContentService.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST
@Xml
Observable<UploadFileResponse> uploadFile(@Url String url,
                                          @PartMap Map<String, RequestBody> params,
                                          @Part MultipartBody.Part file);
 
Example 50
Project: mimi-reader   File: FourChanPostApi.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST("{boardName}/post")
Observable<Response<ResponseBody>> post(@Path("boardName") String boardName, @PartMap Map<String, RequestBody> param);
 
Example 51
Project: Every-Sample   File: HttpServiceSamples.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST("/service/auth")
Observable<BaseBean<String>> DtLogin(
        @PartMap Map<String, RequestBody> params
        );
 
Example 52
Project: RetrofitClient   File: BaseApiService.java   Source Code and License 4 votes vote down vote up
@POST("{url}")
Call<ResponseBody> uploadFiles(
        @Path("url") String url,
        @Path("headers") Map<String, String> headers,
        @Part("filename") String description,
        @PartMap() Map<String, RequestBody> maps);
 
Example 53
Project: percolate-java-sdk   File: MediaReleaseService.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST(Endpoints.API_V4_PATH + "/release/")
Call<MediaReleaseResponse> create(@PartMap Map<String, RequestBody> params);
 
Example 54
Project: percolate-java-sdk   File: MediaReleaseServiceRx.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST(Endpoints.API_V4_PATH + "/release/")
Observable<MediaReleaseResponse> create(@PartMap Map<String, RequestBody> params);
 
Example 55
Project: LLApp   File: ApiService.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST("api/user/modifyDevice")
Observable<BaseResponse> uploadImage(@PartMap Map<String, RequestBody> map, @Part MultipartBody.Part file);
 
Example 56
Project: aptoide-client-v8   File: V7.java   Source Code and License 4 votes vote down vote up
@Multipart @POST("store/set") Observable<BaseV7Response> editStore(
@Part MultipartBody.Part multipartBody,
@PartMap HashMapNotNull<String, okhttp3.RequestBody> body);
 
Example 57
Project: aptoide-client-v8   File: V7.java   Source Code and License 4 votes vote down vote up
@Multipart @POST("user/set") Observable<BaseV7Response> editUser(
@Part MultipartBody.Part user_avatar,
@PartMap HashMapNotNull<String, okhttp3.RequestBody> body);
 
Example 58
Project: aptoide-client-v8   File: Service.java   Source Code and License 4 votes vote down vote up
@POST("createUser") @Multipart Observable<BaseV3Response> createUserWithFile(
@Part MultipartBody.Part user_avatar, @PartMap() HashMapNotNull<String, RequestBody> args,
@Header(WebService.BYPASS_HEADER_KEY) boolean bypassCache);
 
Example 59
Project: SprintNBA   File: HupuForumApi.java   Source Code and License 4 votes vote down vote up
@POST("img/Imgup")
@Multipart
void upload(@Part("file") MultipartBody.Part file, @PartMap Map<String, RequestBody> params);
 
Example 60
Project: Metro   File: ApiStore.java   Source Code and License 4 votes vote down vote up
@Multipart
@POST("Index")
Observable<ResultCode> payOrder(@PartMap Map<String, RequestBody> map);