Assuming there is a REST Controller with an endpoint that accepts a single object in the body:
@PostMapping("/ExampleObjects")
void mapping(@RequestBody ExampleObject object){ ....
If one would want to add the ability to accept an array under the same endpoint like this:
@PostMapping("/ExampleObjects")
void mapping(@RequestBody ExampleObject[] objects){ ....
Is there a way to implement the new functionality with the given design and without breaking existing users?
Locationheaders. Instead, it's almost always preferable to just make multiple POST requests in sequence.