public interface FileParsingApi
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.rxjava3.core.Single<FileParsingUploadResp> |
createParseTask(okhttp3.MultipartBody multipartBody)
Create a file parsing task.
|
retrofit2.Call<okhttp3.ResponseBody> |
downloadParseResult(String taskId,
String formatType)
Get a file parsing result.
|
retrofit2.Call<FileParsingDownloadResp> |
syncParse(okhttp3.MultipartBody multipartBody)
Executes a synchronous file parsing operation.
|
@POST(value="files/parser/create") io.reactivex.rxjava3.core.Single<FileParsingUploadResp> createParseTask(@Body okhttp3.MultipartBody multipartBody)
multipartBody - File data with metadata including tool_type and file_type@Streaming
@GET(value="files/parser/result/{taskId}/{formatType}")
retrofit2.Call<okhttp3.ResponseBody> downloadParseResult(@Path(value="taskId")
String taskId,
@Path(value="formatType")
String formatType)
taskId - The unique task ID for the parsing jobformatType - The format type of the parsing result@POST(value="files/parser/sync") retrofit2.Call<FileParsingDownloadResp> syncParse(@Body okhttp3.MultipartBody multipartBody)
multipartBody - The multipart request body containing the file and related
metadata (tool type, file type)Copyright © 2025. All rights reserved.