waterwheel.js icon indicating copy to clipboard operation
waterwheel.js copied to clipboard

Support question: what are resources?

Open arnoldbird opened this issue 6 years ago • 1 comments

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.

arnoldbird avatar Feb 28 '18 20:02 arnoldbird

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.

richgerdes avatar Mar 05 '18 02:03 richgerdes