Answer the question
In order to leave comments, you need to log in
[Java, Retrofit] Is there a way to send multiple fields with the same name to the server in the POST body?
Client development uses Retrofit.
The situation is this: in the POST body, the validator on the server expects several fields with the same name among many, for example:
@Multipart
post("/users")
void create(
@ Part("name") String name,
@ Part("age") String age,
@ Part("place") List<Integer> place,
Answer the question
In order to leave comments, you need to log in
So your Retrofit does everything right. In this form, List should rely without problems.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question