Chris@0: # Schema for the configuration files of the REST module. Chris@0: rest.settings: Chris@0: type: config_object Chris@0: label: 'REST settings' Chris@0: mapping: Chris@0: # @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0. Chris@0: # @see https://www.drupal.org/node/2830467 Chris@0: link_domain: Chris@0: type: string Chris@0: label: 'Domain of the relation' Chris@0: bc_entity_resource_permissions: Chris@0: type: boolean Chris@0: label: 'Whether the pre Drupal 8.2.x behavior of having permissions for EntityResource is enabled or not.' Chris@0: Chris@0: # Method-level granularity of REST resource configuration. Chris@0: rest_resource.method: Chris@0: type: mapping Chris@0: mapping: Chris@0: HEAD: Chris@0: type: rest_request Chris@0: label: 'HEAD method settings' Chris@0: GET: Chris@0: type: rest_request Chris@0: label: 'GET method settings' Chris@0: POST: Chris@0: type: rest_request Chris@0: label: 'POST method settings' Chris@0: PUT: Chris@0: type: rest_request Chris@0: label: 'PUT method settings' Chris@0: DELETE: Chris@0: type: rest_request Chris@0: label: 'DELETE method settings' Chris@0: TRACE: Chris@0: type: rest_request Chris@0: label: 'TRACE method settings' Chris@0: OPTIONS: Chris@0: type: rest_request Chris@0: label: 'OPTIONS method settings' Chris@0: CONNECT: Chris@0: type: rest_request Chris@0: label: 'CONNECT method settings' Chris@0: PATCH: Chris@0: type: rest_request Chris@0: label: 'PATCH method settings' Chris@0: Chris@0: # Resource-level granularity of REST resource configuration. Chris@0: rest_resource.resource: Chris@0: type: mapping Chris@0: mapping: Chris@0: methods: Chris@0: type: sequence Chris@0: label: 'Supported methods' Chris@0: sequence: Chris@0: type: string Chris@0: label: 'HTTP method' Chris@0: formats: Chris@0: type: sequence Chris@0: label: 'Supported formats' Chris@0: sequence: Chris@0: type: string Chris@0: label: 'Format' Chris@0: authentication: Chris@0: type: sequence Chris@0: label: 'Supported authentication providers' Chris@0: sequence: Chris@0: type: string Chris@0: label: 'Authentication provider' Chris@0: Chris@0: rest_request: Chris@0: type: mapping Chris@0: mapping: Chris@0: supported_formats: Chris@0: type: sequence Chris@0: label: 'Supported format' Chris@0: sequence: Chris@0: type: string Chris@0: label: 'Format' Chris@0: supported_auth: Chris@0: type: sequence Chris@0: label: 'Supported authentication' Chris@0: sequence: Chris@0: type: string Chris@0: label: 'Authentication' Chris@0: Chris@0: rest.resource.*: Chris@0: type: config_entity Chris@0: label: 'REST resource config' Chris@0: mapping: Chris@0: id: Chris@0: type: string Chris@0: label: 'REST resource config ID' Chris@0: plugin_id: Chris@0: type: string Chris@0: label: 'REST resource plugin id' Chris@0: granularity: Chris@0: type: string Chris@0: label: 'REST resource configuration granularity' Chris@0: configuration: Chris@0: type: rest_resource.[%parent.granularity] Chris@0: label: 'REST resource configuration'