Most libraries for java, .net, angular, javascript, and more, use hashmaps for their http query parameters. So building a RESTHeart query with multiple keys values is not easy without 3rd party libraries or custom code to support RESTHeart's projection implementation.
GET /inventory?keys={'a':1}&keys={'b':1}&keys={'c':1}
But Angular, as well as most other languages I've used here, will build the request as follows because the 'keys' value for the HttpParams keeps getting updated.
Most libraries for java, .net, angular, javascript, and more, use hashmaps for their http query parameters. So building a RESTHeart query with multiple keys values is not easy without 3rd party libraries or custom code to support RESTHeart's projection implementation.
Expected Behavior
Let's say we have the following Angular code:
RESTHeart expects this:
But Angular, as well as most other languages I've used here, will build the request as follows because the 'keys' value for the HttpParams keeps getting updated.
Possible Implementation
Perhaps keys can also support an array: