diff --git a/core/modules/rest/config/install/rest.settings.yml b/core/modules/rest/config/install/rest.settings.yml index e2699fc..c5a8168 100644 --- a/core/modules/rest/config/install/rest.settings.yml +++ b/core/modules/rest/config/install/rest.settings.yml @@ -3,31 +3,9 @@ # going to use Basic_auth in a production environment then you should consider # setting up SSL. # There are alternatives to Basic_auth in contrib such as OAuth module. -resources: - entity:node: - GET: - supported_formats: - - hal_json - supported_auth: - - basic_auth - POST: - supported_formats: - - hal_json - supported_auth: - - basic_auth - PATCH: - supported_formats: - - hal_json - supported_auth: - - basic_auth - DELETE: - supported_formats: - - hal_json - supported_auth: - - basic_auth - +resources: [] # Multiple formats and multiple authentication providers can be defined for a -# resource: +# resource - e.g. Consider this sample node configuration. # # resources: # entity:node: @@ -39,6 +17,21 @@ resources: # supported_auth: # - cookie # - basic_auth +# POST: +# supported_formats: +# - hal_json +# supported_auth: +# - basic_auth +# PATCH: +# supported_formats: +# - hal_json +# supported_auth: +# - basic_auth +# DELETE: +# supported_formats: +# - hal_json +# supported_auth: +# - basic_auth # # hal_json is the only format supported for POST and PATCH methods. #