diff --git a/core/modules/rest/rest.module b/core/modules/rest/rest.module --- a/core/modules/rest/rest.module +++ b/core/modules/rest/rest.module @@ -24,6 +24,12 @@ function rest_help($route_name, RouteMatchInterface $route_match) { $output .= '
' . t('Enabling REST support for an entity type') . '
'; $output .= '
' . t('REST support for content types (provided by the Node module) is enabled by default. To enable support for other content entity types, you can use a process based on configuration editing or the contributed REST UI module.', [':node' => (\Drupal::moduleHandler()->moduleExists('node')) ? \Drupal::url('help.page', ['name' => 'node']) : '#', ':config' => 'https://www.drupal.org/documentation/modules/rest', ':restui' => 'https://www.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 .= '
' . t('General') . '
'; + $output .= '
' . t('The RESTful Web Services and JSON:API modules serve similar purposes. Read the comparison of the RESTFul Web Services and JSON:API modules to determine the best choice for your site.', [ + ':rest-docs' => 'https://www.drupal.org/docs/8/core/modules/rest', + ':jsonapi-docs' => 'https://www.drupal.org/docs/8/modules/json-api', + ':comparison' => 'https://www.drupal.org/docs/8/modules/jsonapi/jsonapi-vs-cores-rest-module', + ]) . '
'; $output .= ''; return $output; }