Last active
November 12, 2017 13:56
-
-
Save emedinaa/8891480ced01a326a3cf9d0488087b26 to your computer and use it in GitHub Desktop.
Android-Retrofit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Multiple dynamic fields with Retrofit | |
HashMap<String, String> map = new HashMap<>(); | |
map.put("param1", param1); | |
map.put("param2", param2); | |
map.put("param3", param3); | |
@FormUrlEncoded | |
@POST("/endpoint/") | |
Call<BaseResponse> endpoint(@Field("user_name") String userName, @FieldMap HashMap<String, String> hashFields); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment