retrofit2.http.Body Java Examples

The following examples show how to use retrofit2.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: RestConversations.java    From botbuilder-java with MIT License 5 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8",
    "x-ms-logging-context: com.microsoft.bot.schema.Conversations uploadAttachment" })
@POST("v3/conversations/{conversationId}/attachments")
CompletableFuture<Response<ResponseBody>> uploadAttachment(
    @Path("conversationId") String conversationId,
    @Body AttachmentData attachmentUpload,
    @Header("accept-language") String acceptLanguage,
    @Header("User-Agent") String userAgent
);
 
Example #2
Source File: RestConversations.java    From botbuilder-java with MIT License 5 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8",
    "x-ms-logging-context: com.microsoft.bot.schema.Conversations sendConversationHistory" })
@POST("v3/conversations/{conversationId}/activities/history")
CompletableFuture<Response<ResponseBody>> sendConversationHistory(
    @Path("conversationId") String conversationId,
    @Body Transcript history,
    @Header("accept-language") String acceptLanguage,
    @Header("User-Agent") String userAgent
);
 
Example #3
Source File: RestConversations.java    From botbuilder-java with MIT License 5 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8",
    "x-ms-logging-context: com.microsoft.bot.schema.Conversations replyToActivity" })
@POST("v3/conversations/{conversationId}/activities/{activityId}")
CompletableFuture<Response<ResponseBody>> replyToActivity(
    @Path("conversationId") String conversationId,
    @Path("activityId") String activityId,
    @Body Activity activity,
    @Header("accept-language") String acceptLanguage,
    @Header("User-Agent") String userAgent
);
 
Example #4
Source File: EosWalletApiService.java    From eos-java-rpc-wrapper with MIT License 4 votes vote down vote up
@POST("/v1/wallet/sign_transaction")
Call<SignedPackedTransaction> signTransaction(@Body SignTransactionRequest unsignedTransaction);
 
Example #5
Source File: AdamantApi.java    From adamant-android with GNU General Public License v3.0 4 votes vote down vote up
@POST("/api/transactions/process")
Flowable<TransactionWasProcessed> sendAdmTransferTransaction(@Body ProcessTransaction transaction);
 
Example #6
Source File: HassApi.java    From hassalarm with MIT License 4 votes vote down vote up
@POST("/api/services/input_datetime/set_datetime")
Call<ResponseBody> setInputDatetimeUsingApiKey(@Body Datetime datetime, @Header("x-ha-access") String apiKey);
 
Example #7
Source File: HaprampAPI.java    From 1Rramp-Android with MIT License 4 votes vote down vote up
@POST("login")
Call<VerifiedToken> verifyUser(@Body VerificationDataBody verificationDataBody);
 
Example #8
Source File: HaprampAPI.java    From 1Rramp-Android with MIT License 4 votes vote down vote up
@POST
Call<CompetitionCreateResponse> createCompetition(@Url String url, @Body CompetitionCreateBody body);
 
Example #9
Source File: PetOperationInvoke.java    From baidu-chain-dog with GNU General Public License v3.0 4 votes vote down vote up
@POST("data/pet/queryPetById")
Call<PetQueriedByIdResponse> queryPetById(@Body PetQueriedByIdRequest body);
 
Example #10
Source File: EosChainApiService.java    From eos-java-rpc-wrapper with MIT License 4 votes vote down vote up
@POST("/v1/chain/get_scheduled_transactions")
Call<ScheduledTransactionResponse> getScheduledtransaction(@Body Map<String, String> requestFields);
 
Example #11
Source File: RpcService.java    From wallet-eos with Apache License 2.0 4 votes vote down vote up
@POST("/v1/chain/push_transaction")
Call<Transaction> pushTransaction(@Body TxRequest request);
 
Example #12
Source File: RpcService.java    From eos4j with GNU General Public License v3.0 4 votes vote down vote up
@POST("/v1/chain/get_account")
Call<Account> getAccount(@Body Map<String, String> requestFields);
 
Example #13
Source File: ApiService.java    From pandora with Apache License 2.0 4 votes vote down vote up
@PATCH("/patch")
Call<Void> patch(@Body Data body);
 
Example #14
Source File: EosHistoryApiService.java    From eos-java-rpc-wrapper with MIT License 4 votes vote down vote up
@POST("/v1/history/get_key_accounts")
Call<KeyAccounts> getKeyAccounts(@Body Map<String, String> requestFields);
 
Example #15
Source File: SampleApiService.java    From Gander with Apache License 2.0 4 votes vote down vote up
@PATCH("/patch")
Call<Void> patch(@Body Data body);
 
Example #16
Source File: EosHistoryApiService.java    From eos-java-rpc-wrapper with MIT License 4 votes vote down vote up
@POST("/v1/history/get_actions")
Call<Actions> getActions(@Body Map<String, Object> requestFields);
 
Example #17
Source File: EosHistoryApiService.java    From eos-java-rpc-wrapper with MIT License 4 votes vote down vote up
@POST("/v1/history/get_controlled_accounts")
Call<ControlledAccounts> getControlledAccounts(@Body Map<String, String> requestFields);
 
Example #18
Source File: EosWalletApiService.java    From eos-java-rpc-wrapper with MIT License 4 votes vote down vote up
@POST("/v1/wallet/create_key")
Call<String> createKey(@Body List<String> parameters);
 
Example #19
Source File: EosWalletApiService.java    From eos-java-rpc-wrapper with MIT License 4 votes vote down vote up
@POST("/v1/wallet/sign_digest")
Call<String> signDigest(@Body List<String> parameters);
 
Example #20
Source File: EosWalletApiService.java    From eos-java-rpc-wrapper with MIT License 4 votes vote down vote up
@POST("/v1/wallet/set_timeout")
Call<Void> setTimeout(@Body Integer timeOut);
 
Example #21
Source File: RestAPIService.java    From homeassist with Apache License 2.0 4 votes vote down vote up
@POST("/api/services/{domain}/{service}")
Call<ArrayList<Entity>> callService(@Header("x-ha-access") String password, @Path("domain") String domain, @Path("service") String service, @Body CallServiceRequest json);
 
Example #22
Source File: EosWalletApiService.java    From eos-java-rpc-wrapper with MIT License 4 votes vote down vote up
@POST("/v1/wallet/import_key")
Call<Void> importKey(@Body List<String> requestFields);
 
Example #23
Source File: LightWalletApi.java    From guarda-android-wallets with GNU General Public License v3.0 4 votes vote down vote up
@POST("/")
Call<ResponseCurrencyItem> getListCurrencies(@Body JsonObject object);
 
Example #24
Source File: EosWalletApiService.java    From eos-java-rpc-wrapper with MIT License 4 votes vote down vote up
@POST("/v1/wallet/lock")
Call<Void> lockWallet(@Body String walletName);
 
Example #25
Source File: EosWalletApiService.java    From eos-java-rpc-wrapper with MIT License 4 votes vote down vote up
@POST("/v1/wallet/create")
Call<String> createWallet(@Body String walletName);
 
Example #26
Source File: RxRestService.java    From FastWaiMai with MIT License 4 votes vote down vote up
@PUT
Observable<String> putRaw(String url, @Body RequestBody body);
 
Example #27
Source File: RxRestService.java    From FastWaiMai with MIT License 4 votes vote down vote up
@POST
Observable<String> postRaw(@Url String url, @Body RequestBody body);
 
Example #28
Source File: SampleApiService.java    From Gander with Apache License 2.0 4 votes vote down vote up
@POST("/post")
Call<Void> post(@Body Data body);
 
Example #29
Source File: PushRestAPI.java    From java-unified-sdk with Apache License 2.0 4 votes vote down vote up
@POST("/1.1/installations")
Call<JSONObject> saveInstallation(@Body JSONObject param, @Query("fetchWhenSave") boolean fetchFlag);
 
Example #30
Source File: PushService.java    From java-unified-sdk with Apache License 2.0 4 votes vote down vote up
@POST("/1.1/push")
Observable<JSONObject> sendPushRequest(@Body JSONObject param);