There is an object like this (more than one field, but just one for this ex)
public class MyObject{
private String objString;
public String getObjString(){
return objString;
}
public void setObjString(String str){
this.objString = str;
}
}
and a wrapper for it to take multiple
public class MyObjects{
private List<MyObject> objects;
... getters and setters for list...
}
and an endpoint like this
@GetMapping("/sample")
public ResponseEntity<String> sampleEndpoint(MyObjects objs){...}
What should I be doing to send it properly? I have tried making a mock model of it and sending it over as a request param but that is not working. I am able to hit the endpoint in the browser if I do a url like
'/sample?objs%5B0%5D.objString=test&objs%5B1%5D.objString=test1'
but am not sure what the best method to do this in angular is.