# Schema for the configuration files of the REST module.
rest.settings:
type: config_object
label: 'REST settings'
mapping:
link_domain:
type: string
label: 'Domain of the relation'
bc_entity_resource_permissions:
type: boolean
label: 'Whether the pre Drupal 8.2.x behavior of having permissions for EntityResource is enabled or not.'
# Method-level granularity of REST resource configuration.
rest_resource.method:
type: mapping
GET:
type: rest_request
label: 'GET method settings'
POST:
label: 'POST method settings'
PATCH:
label: 'PATCH method settings'
DELETE:
label: 'DELETE method settings'
# Resource-level granularity of REST resource configuration.
rest_resource.resource:
methods:
type: sequence
label: 'Supported methods'
sequence:
label: 'HTTP method'
formats:
label: 'Supported formats'
label: 'Format'
authentication:
label: 'Supported authentication providers'
label: 'Authentication provider'
rest_request:
supported_formats:
label: 'Supported format'
supported_auth:
label: 'Supported authentication'
label: 'Authentication'
rest.resource.*:
type: config_entity
label: 'REST resource config'
id:
label: 'REST resource config ID'
plugin_id:
label: 'REST resource plugin id'
granularity:
label: 'REST resource configuration granularity'
configuration:
type: rest_resource.[%parent.granularity]
label: 'REST resource configuration'