My Spiring RestService delete method has signature :
public ResponseEntity<?> delete(@RequestBody List<Long> IdList)
I am making a client code and trying to send list of long id's to my above service with the help of RestTemplate delete . But it seems RestTemplate delete method does not accept list of long ids . How to fix this ?
Here is the client code:
RestTemplate.delete("/bsi/extgd/v1" + [2,3,4]); // this does not work... as I cant send list of long ids here
Is there any way to send list of long ids to delete method ?