I want to give users of my application to specify search parameters with query builder. Something like this http://dncrews.com/angular-elastic-builder/examples/ Or this http://mfauveau.github.io/angular-query-builder/
Front-end which is written in AngularJS comunicates over HTTP with back-end. On back-end i want to implement RESTful API. And i cannot find any recomendations how to get list (which usually retrived throug HTTP GET request) with large amount of search parameters in RESTful way. In my case user can build query that will exhaust URL length limit. Because of that i cannot use GET request type.
A common approach is to use POST
to create a /search-criteria
resource which contains all your parameters. Then do the GET
with a query parameter ?searchCriteria={id}
.