diff --git a/core/modules/rest/rest.module b/core/modules/rest/rest.module index a3cf32b..30c1ddf 100644 --- a/core/modules/rest/rest.module +++ b/core/modules/rest/rest.module @@ -31,7 +31,15 @@ function rest_help($route_name, Request $request) { case 'help.page.rest': $output = ''; $output .= '

' . t('About') . '

'; - $output .= '

' . t('The REST module provides a framework for exposing Drupal\'s data structures as RESTful web services. It can be used to read and write resources remotely, such as entity types like nodes or users. For more information, see the online handbook entry for the RESTful web services module.', array('@rest' => 'http://drupal.org/documentation/modules/rest')) . '

'; + $output .= '

' . t('The RESTful Web Services module provides a framework for exposing REST resources on your site. It provides support for content entities (see the Entity module help page for more information about entities) such as content, users, taxonomy terms, etc.; REST support for content items of the Node module is enabled by default, and support for other types of content entities can be enabled. Other modules may add support for other types of REST resources. For more information, see the online documentation for the RESTful Web Services module.', array('!rest' => 'https://drupal.org/documentation/modules/rest', '!entity' => \Drupal::url('help.page', array('name' => 'entity')))) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Enabling supporting modules') . '
'; + $output .= '
' . t('In order to use REST on a web site, you need to install and enable modules that provide serialization and authentication services. You can use the Core module HAL for serialization and HTTP Basic Authentication for authentication, or install a contributed or custom module.', array('!hal' => \Drupal::url('help.page', array('name' => 'hal')), '!basic_auth' => \Drupal::url('help.page', array('name' => 'basic_auth')))) . '
'; + $output .= '
' . t('Enabling REST support for an entity type') . '
'; + $output .= '
' . t('REST support for content items of the Node module is enabled by default, and support for other types of content entities can be enabled. To enable support, you can use a process based on configuration editing or the contributed Rest UI module.', array('!config' => 'https://drupal.org/documentation/modules/rest', '!restui' => 'https://drupal.org/project/restui')) . '
'; + $output .= '
' . t('You will also need to grant anonymous users permission to perform each of the REST operations you want to be available, and set up authentication properly to authorize web requests.') . '
'; + $output .= '
'; return $output; } }