I'm improving an existing API, and the requirement is to provide a single get method which can accept multiple search criteria and based on those criteria perform the query.
I'm using Spring MVC. The get method signature:
@GetMapping("/subscribers")
public ResponseEntity<List<SubscriberDTO>> getAllSubscribers(Pageable pageable, @RequestBody List<SearchCriteria> lstSearchCriteria)
The implementation is working as expected tested on Postman
Now I was going to Angular to implementing the front end and I can't find a way to send a body through HttpClient Get method...
I'm kind of stuck. Should I send the search criteria over headers? Or there's a better way of doing it?