I know how to make a get request to get all items of one bundle. I request to this endpoint...

/my_entity/my_bundle

But how do I get all items for my_entity, regardless of bundle? Do I have to create my own web service for this? I want to request to this endpoint...

/my_entity

...or something like...

/my_entity/all

Thanks!

Comments

arnoldbird created an issue. See original summary.

arnoldbird’s picture

I think this doc is relevant: https://www.drupal.org/docs/8/modules/json-api/api-overview

It suggests you can only get items from one bundle at a time.

But what do developers do when they need to get items from all bundles? Create your own custom resource somehow?

arnoldbird’s picture

arnoldbird’s picture

Even better, perhaps, I can create the resource as a view: http://redcrackle.com/blog/rest-export-views-drupal-8

arnoldbird’s picture

Status: Active » Closed (works as designed)