This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$resource GET as array or object #9459
Open
Description
The default for Resource.get(id)
is to return an object, per the documentation (and the code). Makes sense, since GET /item/123
returns a single item. However, sometimes I might want to return multiple items GET /item/123,378
, as Resource.get(['123','378'])
.
Again, I implemented my own wrapper around this for my projects, but I can see broader use cases. Is there interest in a PR such that Resource.get()
can understand an array argument and handle multiple and single?
Again, I didn't find this in the existing ngResource documentation or code, but if I missed it, happy to use the existing and close this.