RESTful Web Services: Resource Discovery

Component ID

2852115

Component name

RESTful Web Services: Resource Discovery

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

290

Component created

Component changed

Component body

Allows a list of entities (including bundle, field and property info) to be viewed at /restws_resource.json.

Motivation: a 3rd party system may not be aware of all entity types available, so a list of entity info is useful. There are some obvious entity types, such as node, comment etc but any custom entity types will not be known to a 3rd party.

Method: A new entity type is created - "restws_resource". The module automatically creates an entity for every restws resource. The response at /restws_resource.json is altered to include the additional field and property information for each bundle.

There is no configuration for this module, the /restws_resource.json endpoint will automatically be available when the module is enabled.