retrofit.http.Body Java Examples

The following examples show how to use retrofit.http.Body. 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: DribbbleAuthService.java    From droidddle with Apache License 2.0 5 votes vote down vote up
@POST("/oauth/token")
public void getAccessToken(@Query("client_id") String client_id,
                           @Query("client_secret") String client_secret, @Query("code") String code,
                           @Body String unused, // can remove when retrofit releases this
                           // fix: https://github
                           // .com/square/retrofit/commit/19ac1e2c4551448184ad66c4a0ec172e2741c2ee
                           Callback<AccessToken> callback);
 
Example #2
Source File: Version11xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@PUT("/organizations/{orgName}/services/{serviceName}/versions/{version}/definition")
Response setDefinition(@Path("orgName") String orgName, @Path("serviceName") String serviceName,
                       @Path("version") String version, @Header("Content-Type") String type, @Body TypedString content);
 
Example #3
Source File: ActionApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@POST("/actions")
Response doAction(@Body ServerAction action);
 
Example #4
Source File: DexcomShare.java    From xDrip-plus with GNU General Public License v3.0 4 votes vote down vote up
@POST("General/LoginPublisherAccountByName")
Call<String> getSessionId(@Body Map<String, String> body);
 
Example #5
Source File: DexcomShare.java    From xDrip-plus with GNU General Public License v3.0 4 votes vote down vote up
@POST("Publisher/PostReceiverEgvRecords")
Call<ResponseBody> uploadBGRecords(@Query("sessionId") String sessionId, @Body ShareUploadPayload payload);
 
Example #6
Source File: DexcomShare.java    From xDrip-plus with GNU General Public License v3.0 4 votes vote down vote up
@POST("General/AuthenticatePublisherAccount")
Call<String> authenticatePublisherAccount(@Query("sessionId") String sessionId,
                                                @Query("serialNumber") String serialNumber,
                                                @Body Map<String, String> body);
 
Example #7
Source File: DexcomShare.java    From xDrip-plus with GNU General Public License v3.0 4 votes vote down vote up
@POST("Publisher/UpdatePublisherAccountRuntimeInfo")
Call<ResponseBody> updatePublisherAccountInfo(@Body UserAgent body);
 
Example #8
Source File: DexcomShare.java    From xDrip-plus with GNU General Public License v3.0 4 votes vote down vote up
@POST("Publisher/CreateSubscriptionInvitation")
Call<String> createInvitationForContact(@Query("sessionId") String sessionId,
                                              @Query("contactId") String contactId,
                                              @Body InvitationPayload body);
 
Example #9
Source File: ApiService.java    From materialup with Apache License 2.0 4 votes vote down vote up
@Headers("Accept: application/json")
@PUT("/posts/{id}/upvote")
Observable<Upvote> upvotes(@Path("id") long id, @Body String content);
 
Example #10
Source File: ApiService.java    From materialup with Apache License 2.0 4 votes vote down vote up
@Headers("Accept: application/json")
@PUT("/posts/{id}/downvote")
Observable<Upvote> downvote(@Path("id") long id, @Body String content);
 
Example #11
Source File: ApiService.java    From materialup with Apache License 2.0 4 votes vote down vote up
@Headers("Accept: application/json")
@POST("/posts/{pid}/comments")
Observable<Comment> postComment(@Path("pid") long pid, @Body RequestBody body);
 
Example #12
Source File: DexcomShare.java    From xDrip with GNU General Public License v3.0 4 votes vote down vote up
@POST("Publisher/CreateSubscriptionInvitation")
Call<String> createInvitationForContact(@Query("sessionId") String sessionId,
                                              @Query("contactId") String contactId,
                                              @Body InvitationPayload body);
 
Example #13
Source File: OrgApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@POST("/organizations")
Response create(@Body Org organisation);
 
Example #14
Source File: Version11xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@PUT("/organizations/{orgName}/services/{serviceName}/versions/{version}/policies/{policyId}")
Response configurePolicy(@Path("orgName") String orgName, @Path("serviceName") String serviceName,
                         @Path("version") String version, @Path("policyId") Long policyId, @Body ApiPolicy policyConfig);
 
Example #15
Source File: MattermostService.java    From mattermost-android-classic with Apache License 2.0 4 votes vote down vote up
@Headers("X-Requested-With: XMLHttpRequest")
@PUT("/api/v4/users/sessions/device")
Promise<User> attachDeviceV4(@Body User user);
 
Example #16
Source File: GatewayApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@POST("/gateways")
Response create(@Body Gateway gateway);
 
Example #17
Source File: Version11xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@PUT("/organizations/{orgName}/services/{serviceName}/versions/{version}")
Response configure(@Path("orgName") String orgName, @Path("serviceName") String serviceName,
                   @Path("version") String version, @Body ServiceConfig config);
 
Example #18
Source File: Version11xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@POST("/organizations/{orgName}/services/{serviceName}/versions")
Response createVersion(@Path("orgName") String orgName, @Path("serviceName") String serviceName, @Body ApiVersion apiVersion);
 
Example #19
Source File: Version11xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@POST("/organizations/{orgName}/services")
Response create(@Path("orgName") String orgName, @Body Api api);
 
Example #20
Source File: Version12xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@PUT("/organizations/{orgName}/apis/{apiName}/versions/{version}/policies/{policyId}")
Response configurePolicy(@Path("orgName") String orgName, @Path("apiName") String apiName,
                         @Path("version") String version, @Path("policyId") Long policyId, @Body ApiPolicy policyConfig);
 
Example #21
Source File: Version12xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@POST("/organizations/{orgName}/apis/{apiName}/versions/{version}/policies")
Response addPolicy(@Path("orgName") String orgName, @Path("apiName") String apiName,
                   @Path("version") String version, @Body ApiPolicy policyConfig);
 
Example #22
Source File: Version12xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@PUT("/organizations/{orgName}/apis/{serviceName}/versions/{version}/definition")
Response setDefinition(@Path("orgName") String orgName, @Path("serviceName") String serviceName,
                   @Path("version") String version, @Header("Content-Type") String type, @Body TypedString content);
 
Example #23
Source File: Version12xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@PUT("/organizations/{orgName}/apis/{apiName}/versions/{version}")
Response configure(@Path("orgName") String orgName, @Path("apiName") String apiName,
                   @Path("version") String version, @Body ApiConfig config);
 
Example #24
Source File: Version12xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@POST("/organizations/{orgName}/apis/{apiName}/versions")
Response createVersion(@Path("orgName") String orgName, @Path("apiName") String apiName, @Body ApiVersion apiVersion);
 
Example #25
Source File: Version12xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@POST("/organizations/{orgName}/apis")
Response create(@Path("orgName") String orgName, @Body Api api);
 
Example #26
Source File: PluginApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@POST("/plugins")
Response create(@Body Plugin plugin);
 
Example #27
Source File: Webservices.java    From aptoide-client with GNU General Public License v2.0 4 votes vote down vote up
@POST("/ws2.aptoide.com/api/6/listAppsUpdates")
UpdatesResponse getUpdates(@Body UpdatesApi api );
 
Example #28
Source File: Webservices.java    From aptoide-client with GNU General Public License v2.0 4 votes vote down vote up
@POST(ws2 + "/bulkRequest/api_list/getStore,listApps,listStores/")
BulkResponse bulkTopRequest(@Body Api user) throws TicketException;
 
Example #29
Source File: Webservices.java    From aptoide-client with GNU General Public License v2.0 4 votes vote down vote up
@POST(ws2 + "/bulkRequest/api_list/getStore,listApps/")
BulkResponse bulkGetStoreListAppsRequest(@Body Api user) throws TicketException;
 
Example #30
Source File: IGetAppV7WebService.java    From aptoide-client with GNU General Public License v2.0 4 votes vote down vote up
@POST(BASE_V7_URL + "/listAppsVersions")
GetApp.Nodes.ListAppsVersions listAppsVersions(@Body Apiv7 api);