Skip to content
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
@deitch

Description

@deitch

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions