waterwheel.js
waterwheel.js copied to clipboard
Support question: what are resources?
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.
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.