i would like to post an array of objects along with other kind of formdata.
Something like
{
country: "us",
province: "ny",
cities: [{
name: "hello",
size: "small"
}, {
name: "hi",
size: "big"
}]
}
How do I do this in retrofit? I only need the part where it is declaring the retrofit client api.
@FormUrlEncoded
@PUT("user/doStuff")
Observable<Void> doStuff(@Field("country") String country, @Field("province") String province,
/* What do i do with cities here?? */);