I am trying to post raw json like this:
[
{
"name":"a",
"id":"1"
},
{
"name":"b",
"id":"2"
]
it is work fine with postman but in retrofit it's add single value to the db I tried to use this code:
public class DataModel{
...
}
@POST
Call<Void> addData(@Body List<DataModel>);