signalpoint / jDrupal

A JavaScript Library and API for Drupal Applications
http://jdrupal.tylerfrankenstein.com/
GNU General Public License v2.0
76 stars 38 forks source link

Returning node collections #81

Open JeSuisAlrick opened 6 years ago

JeSuisAlrick commented 6 years ago

Hi, there doesn't seem to be a way to retrieve a collection of nodes from the service. Is there a reason for this? Am I supposed to use a view?

signalpoint commented 6 years ago

@JeSuisAlrick For D7 or D8?

In D7, there is the node_index() resource for this.

And yes, Views is a nice alternative, as is creating your own custom Service Resource.

JeSuisAlrick commented 6 years ago

Oh, ok. I'm actually using Drupal 8.

I prefer to deal with raw data because of how heavy Views can be. I was hoping there was a way to send a query back to the service for certain types of nodes, but basically you saying I can create my own resource and call it from jDrupal?