Java 类retrofit.http.PartMap 实例源码

项目:java-hod-client    文件:QueryProfileBackend.java   
@POST(URL + V2)
@Multipart
Response createQueryProfile(
    @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token,
    @Path(PROFILE_VARIABLE) String name,
    @Part(INDEX_PART) String queryManipulationIndex,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:QueryProfileBackend.java   
@PUT(URL + V1)
@Multipart
Response updateQueryProfile(
    @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token,
    @Path(PROFILE_VARIABLE) ResourceIdentifier queryProfile,
    @Part(INDEX_PART) String queryManipulationIndex,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:GroupsBackend.java   
@POST(BASE_PATH + V1)
@Multipart
Response create(
    @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token,
    @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore,
    @Part("group_name") String name,
    @PartMap Map<String, Object> hierarchyParameters
) throws HodErrorException;
项目:java-hod-client    文件:UserStoreUsersBackend.java   
@POST(BASE_PATH + V1)
@Multipart
Response create(
    @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token,
    @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore,
    @Part("user_email") String email,
    @Part("on_success") String onSuccess,
    @Part("on_error") String onError,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:QueryTextIndexBackend.java   
/**
 * Query HP Haven OnDemand for documents using query text in a file using the given token
 * @param token The token to use to authenticate the request
 * @param file A file containing the query text
 * @param params Additional parameters to be sent as part of the request
 * @return A list of documents that match the query text
 */
@Multipart
@POST(URL)
Response queryTextIndexWithFile(
    @Header("token") AuthenticationToken<?, ?> token,
    @Part("file") TypedOutput file,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:FindRelatedConceptsBackend.java   
/**
 * Query HP Haven OnDemand for documents using query text in a file using the given token
 * @param token The token to use to authenticate the request
 * @param file A file containing the query text
 * @param params Additional parameters to be sent as part of the request
 * @return A list of documents that match the query text
 */
@Multipart
@POST(URL)
Response findRelatedConceptsWithFile(
    @Header("token") AuthenticationToken<?, ?> token,
    @Part("file") TypedOutput file,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:FindSimilarBackend.java   
/**
 * Finds similar documents to the text in a file using the given token
 * @param token The token to use to authenticate the request
 * @param file A file containing the query text
 * @param params Additional parameters to be sent as part of the request
 * @return A list of documents that are similar to the query text
 */
@Multipart
@POST(URL)
Response findSimilarDocumentsToFile(
    @Header("token") AuthenticationToken<?, ?> token,
    @Part("file") TypedOutput file,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/users/@me/meals")
void createMealEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/meals/{xid}/partialUpdate")
void updateMealEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @Path(UpPlatformSdkConstants.XID) String xid,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/users/@me/generic_events")
void createCustomEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/generic_events/{xid}/partialUpdate")
void updateCustomEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/users/@me/workouts")
void createWorkoutEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/workouts/{xid}/partialUpdate")
void updateWorkoutEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/users/@me/sleeps")
void createSleepEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/users/@me/body_events")
void createBodyEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/users/@me/goals")
void createOrUpdateUsersGoals(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/users/@me/mood")
void createMoodEvent(
        @Path(UpPlatformSdkConstants.API_VERSION) String version,
        @PartMap HashMap<String, Object> hashMap,
        Callback<Object> response
);
项目:Android.Media.Uploader    文件:IMedia.java   
@Multipart
@POST("/api/values")
void MediaUpload(@PartMap Map<String,TypedFile> media, Callback<String> response);
项目:aptoide-client    文件:UploadAppToRepoRequest.java   
@POST("/upload.webservices.aptoide.com/webservices/2/uploadAppToRepo")
@Multipart
UploadAppToRepoJson postApk(@PartMap HashMap<String, Object> args);
项目:JPluf    文件:IContentService.java   
@Multipart
@POST("/api/saascms/content/new")
PContent createContent(@PartMap Map<String, Object> map, @Part("file") TypedFile file);
项目:JPluf    文件:IContentService.java   
@Multipart
@POST("/api/saascms/content/{contentId}")
PContent updateContentFile(@Path("contentId") Long id, @PartMap Map<String, Object> map, @Part("file") TypedFile file);
项目:JPluf    文件:IContentService.java   
@Multipart
@POST("/api/saascms/content/{contentId}/download")
PContent updateContentFileByAttach(@Path("contentId") Long id, @PartMap Map<String, Object> params, @Part("file") TypedFile file);
项目:Vapor    文件:CloudAppService.java   
@Multipart
@Headers("Accept: application/json")
@POST("http://s3.amazonaws.com/f.cl.ly")
Observable<ItemModel> uploadFile(@PartMap Map<String, RequestBody> parts);
项目:Android-REST-API-Explorer    文件:PagesService.java   
/**
 * Creates a new page with a multi-part content body
 * in a section specified by section id
 *
 * @param version
 * @param sectionId
 * @param partMap
 * @param callback
 */
@Multipart
@POST("/{version}/me/notes/sections/{sectionId}/pages")
void postMultiPartPages(
        @Path("version") String version,
        @Path("sectionId") String sectionId,
        @PartMap OneNotePartsMap partMap,
        Callback<Envelope<Page>> callback
);
项目:java-hod-client    文件:HavenOnDemandBackend.java   
/**
 * Sends a POST request to the given API
 * @param token The token used to authenticate the request
 * @param api The name of the API
 * @param version The version of the API
 * @param params The query parameters sent to the API
 * @return A Map representing the result from HP Haven OnDemand
 * @throws HodErrorException
 */
@POST(SYNC_URL_ONE)
@Multipart
Response post(
    @Header("token") AuthenticationToken<?, ?> token,
    @Path("first") String api,
    @Path("version") int version,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:HavenOnDemandBackend.java   
/**
 * Sends a POST request to the given API
 * @param token The token used to authenticate the request
 * @param first The first part of the name of the API
 * @param second The second part of the name of the API
 * @param version The version of the API
 * @param params The query parameters sent to the API
 * @return A Map representing the result from HP Haven OnDemand
 * @throws HodErrorException
 */
@POST(SYNC_URL_TWO)
@Multipart
Response post(
    @Header("token") AuthenticationToken<?, ?> token,
    @Path("first") String first,
    @Path("second") String second,
    @Path("version") int version,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:HavenOnDemandBackend.java   
/**
 * Sends a POST request to the given API
 * @param token The token used to authenticate the request
 * @param first The first part of the name of the API
 * @param second The second part of the name of the API
 * @param third The third part of the name of the API
 * @param version The version of the API
 * @param params The query parameters sent to the API
 * @return A Map representing the result from HP Haven OnDemand
 * @throws HodErrorException
 */
@POST(SYNC_URL_THREE)
@Multipart
Response post(
    @Header("token") AuthenticationToken<?, ?> token,
    @Path("first") String first,
    @Path("second") String second,
    @Path("third") String third,
    @Path("version") int version,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:HavenOnDemandBackend.java   
/**
 * Sends a POST request to the given API asynchronously
 * @param token The token used to authenticate the request
 * @param api The name of the API
 * @param version The version of the API
 * @param params The query parameters sent to the API
 * @return A Map representing the result from HP Haven OnDemand
 * @throws HodErrorException
 */
@POST(ASYNC_URL_ONE)
@Multipart
Response postAsync(
    @Header("token") AuthenticationToken<?, ?> token,
    @Path("api") String api,
    @Path("version") int version,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:HavenOnDemandBackend.java   
/**
 * Sends a POST request to the given API asynchronously
 * @param token The token used to authenticate the request
 * @param first The first part of the name of the API
 * @param second The second part of the name of the API
 * @param version The version of the API
 * @param params The query parameters sent to the API
 * @return A Map representing the result from HP Haven OnDemand
 * @throws HodErrorException
 */
@POST(ASYNC_URL_TWO)
@Multipart
Response postAsync(
    @Header("token") AuthenticationToken<?, ?> token,
    @Path("first") String first,
    @Path("second") String second,
    @Path("version") int version,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:HavenOnDemandBackend.java   
/**
 * Sends a POST request to the given API asynchronously
 * @param token The token used to authenticate the request
 * @param first The first part of the name of the API
 * @param second The second part of the name of the API
 * @param third The third part of the name of the API
 * @param version The version of the API
 * @param params The query parameters sent to the API
 * @return A Map representing the result from HP Haven OnDemand
 * @throws HodErrorException
 */
@POST(ASYNC_URL_THREE)
@Multipart
Response postAsync(
    @Header("token") AuthenticationToken<?, ?> token,
    @Path("first") String first,
    @Path("second") String second,
    @Path("third") String third,
    @Path("version") int version,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:HavenOnDemandBackend.java   
/**
 * Sends a PUT request to the given API
 * @param token The token used to authenticate the request
 * @param api The name of the API
 * @param version The version of the API
 * @param params The query parameters sent to the API
 * @return A Map representing the result from HP Haven OnDemand
 * @throws HodErrorException
 */
@PUT(SYNC_URL_ONE)
@Multipart
Response put(
    @Header("token") AuthenticationToken<?, ?> token,
    @Path("first") String api,
    @Path("version") int version,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:HavenOnDemandBackend.java   
/**
 * Sends a PUT request to the given API
 * @param token The token used to authenticate the request
 * @param first The first part of the name of the API
 * @param second The second part of the name of the API
 * @param version The version of the API
 * @param params The query parameters sent to the API
 * @return A Map representing the result from HP Haven OnDemand
 * @throws HodErrorException
 */
@PUT(SYNC_URL_TWO)
@Multipart
Response put(
    @Header("token") AuthenticationToken<?, ?> token,
    @Path("first") String first,
    @Path("second") String second,
    @Path("version") int version,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:HavenOnDemandBackend.java   
/**
 * Sends a PUT request to the given API
 * @param token The token used to authenticate the request
 * @param first The first part of the name of the API
 * @param second The second part of the name of the API
 * @param third The third part of the name of the API
 * @param version The version of the API
 * @param params The query parameters sent to the API
 * @return A Map representing the result from HP Haven OnDemand
 * @throws HodErrorException
 */
@PUT(SYNC_URL_THREE)
@Multipart
Response put(
    @Header("token") AuthenticationToken<?, ?> token,
    @Path("first") String first,
    @Path("second") String second,
    @Path("third") String third,
    @Path("version") int version,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:HavenOnDemandBackend.java   
/**
 * Sends a PUT request to the given API asynchronously
 * @param token The token used to authenticate the request
 * @param api The name of the API
 * @param version The version of the API
 * @param params The query parameters sent to the API
 * @return The job ID of the request
 * @throws HodErrorException
 */
@PUT(ASYNC_URL_ONE)
@Multipart
Response putAsync(
    @Header("token") AuthenticationToken<?, ?> token,
    @Path("first") String api,
    @Path("version") int version,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:HavenOnDemandBackend.java   
/**
 * Sends a PUT request to the given API asynchronously
 * @param token The token used to authenticate the request
 * @param first The first part of the name of the API
 * @param second The second part of the name of the API
 * @param version The version of the API
 * @param params The query parameters sent to the API
 * @return The job ID of the request
 * @throws HodErrorException
 */
@PUT(ASYNC_URL_TWO)
@Multipart
Response putAsync(
    @Header("token") AuthenticationToken<?, ?> token,
    @Path("first") String first,
    @Path("second") String second,
    @Path("version") int version,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:HavenOnDemandBackend.java   
/**
 * Sends a PUT request to the given API asynchronously
 * @param token The token used to authenticate the request
 * @param first The first part of the name of the API
 * @param second The second part of the name of the API
 * @param third The third part of the name of the API
 * @param version The version of the API
 * @param params The query parameters sent to the API
 * @return The job ID of the request
 * @throws HodErrorException
 */
@PUT(ASYNC_URL_THREE)
@Multipart
Response putAsync(
    @Header("token") AuthenticationToken<?, ?> token,
    @Path("first") String first,
    @Path("second") String second,
    @Path("third") String third,
    @Path("version") int version,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:ViewDocumentBackend.java   
/**
 * Convert a file to HTML and retrieve the result as a stream containing the HTML using the given token
 * @param token The token to use to authenticate the request
 * @param file The file to view
 * @param params Additional parameters to use for the request
 * @return A response whose InputStream contains the HTML of the document. Use response.getBody().in() to access the
 * html. This stream must be closed after use.
 * @throws HodErrorException
 */
@POST(URL)
@Multipart
@Streaming
Response viewFile(
    @Header("token") AuthenticationToken<?, ?> token,
    @Part("file") TypedOutput file,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:AddToTextIndexBackend.java   
/**
 * Index JSON documents into HP Haven OnDemand using the given token
 * @param token The token to use to authenticate the request
 * @param documents A collection of objects to convert to JSON
 * @param indexName The index to add to
 * @param params Additional parameters to be sent as part of the request
 * @return The job ID of the request
 * @throws HodErrorException
 */
@POST(URL)
@Multipart
Response addJsonToTextIndex(
    @Header("token") AuthenticationToken<?, ?> token,
    @Part("json") Documents<?> documents,
    @Path("indexName") ResourceIdentifier indexName,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:AddToTextIndexBackend.java   
/**
 * Index a file into HP Haven OnDemand using the given token
 * @param token The API key to use to authenticate the request
 * @param file A file containing the content of the document
 * @param index The index to add to
 * @param params Additional parameters to be sent as part of the request
 * @return The job ID of the request
 * @throws HodErrorException
 */
@POST(URL)
@Multipart
Response addFileToTextIndex(
    @Header("token") AuthenticationToken<?, ?> token,
    @Part("file") TypedOutput file,
    @Path("indexName") ResourceIdentifier index,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:AddToTextIndexBackend.java   
/**
 * Index an object store object into HP Haven OnDemand using the given token
 * @param token The token to use to authenticate the request
 * @param reference An object store reference pointing at a file to be used for document content
 * @param index The index to add to
 * @param params Additional parameters to be sent as part of the request
 * @return The job ID of the request
 * @throws HodErrorException
 */
@POST(URL)
@Multipart
Response addReferenceToTextIndex(
    @Header("token") AuthenticationToken<?, ?> token,
    @Part("reference") String reference,
    @Path("indexName") ResourceIdentifier index,
    @PartMap Map<String, Object> params
) throws HodErrorException;