Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Support question: what are resources? #75

Open
arnoldbird opened this issue Feb 28, 2018 · 1 comment
Open

Support question: what are resources? #75

arnoldbird opened this issue Feb 28, 2018 · 1 comment

Comments

@arnoldbird
Copy link

arnoldbird commented Feb 28, 2018

The concept of resources is unclear to me in the README. I think most likely resources are not actual resources (in the sense of data from nodes or other entities) but rather are more like a schema that describes the available resources. If so, I don't understand why the client needs to declare the resources, or fetch a list of resources and then include that when fetching data. This part of the API makes no sense to me, as I don't know why the client needs to tell the server what resources the server offers.

@richgerdes
Copy link

Resources are a definition of the API endpoints. This can either be retrieved automatically from the OpenApi module, or by supplying the config as a json object and passing it as config. If the parameter is left off, then its expected that the configuration will come from the openapi resource in the Drupal installation.

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

2 participants