{# /** * @file * Default theme implementation for basic administrative info about a REST resource. * * Available variables: * - granularity: string REST resource granularity. Either * \Drupal\rest\RestResourceConfigInterface::METHOD_GRANULARITY or * \Drupal\rest\RestResourceConfigInterface::RESOURCE_GRANULARITY. * - configuration: array REST resource config. * * @ingroup themeable */ #} {% if granularity == 'resource' %}

methods: {{ configuration.methods|join(', ') }}
formats: {{ configuration.formats|join(', ') }}
authentication: {{ configuration.authentication|join(', ') }}

{% else %} {% for method, properties in configuration %}

{{ method }}
formats: {{ properties.supported_formats|join(', ') }}
authentication: {{ properties.supported_auth|join(', ') }}

{% endfor %} {% endif %}