Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

api.custom('...') returns a Entity. There should be a variatn that returns a collection resource #103

Open
Doogiemuc opened this issue Dec 26, 2016 · 0 comments

Comments

@Doogiemuc
Copy link

Just something I stumbled upon, that might also be of interest to others:

The api.custom() method returns an member (ie. one entity). I have a custom url that is a collection endpoint. It returns an array of entities. And I want to use getAll() on it.

IMHO there should be two methods:

  • customEntity(...)
  • customCollection(...)

But that's just a suggestion

WORKAROUND: http.//localhost/mycustom/collectionEndpoint

api.custom('mycustom').all('collectionEndpoint')
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant