Is it possible with GET Rest Method to pass collection of objects as URL parameters?
class Person{
String name;
String surname;
...
}
public ResponseEntity<List<PersonInfo>> getInfoAboutPersons(@RequestParam List<Person> persons)
I try to send JSON as string and parse it. I became: "Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986", because of '[', ']'.
My only solution is pass list of String (name,surname) and then split and convert to objects, what is not really elegance.
Can someone help by example?