You are here

rest.settings.yml in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/rest/config/install/rest.settings.yml
core/modules/rest/config/install/rest.settings.yml

File

core/modules/rest/config/install/rest.settings.yml
View source
  1. # Enable all methods on nodes.
  2. # You must install Hal and Basic_auth modules for this to work. Also, if you are
  3. # going to use Basic_auth in a production environment then you should consider
  4. # setting up SSL.
  5. # There are alternatives to Basic_auth in contrib such as OAuth module.
  6. resources:
  7. entity:node:
  8. GET:
  9. supported_formats:
  10. - hal_json
  11. supported_auth:
  12. - basic_auth
  13. POST:
  14. supported_formats:
  15. - hal_json
  16. supported_auth:
  17. - basic_auth
  18. PATCH:
  19. supported_formats:
  20. - hal_json
  21. supported_auth:
  22. - basic_auth
  23. DELETE:
  24. supported_formats:
  25. - hal_json
  26. supported_auth:
  27. - basic_auth
  28. # Multiple formats and multiple authentication providers can be defined for a
  29. # resource:
  30. #
  31. # resources:
  32. # entity:node:
  33. # GET:
  34. # supported_formats:
  35. # - json
  36. # - hal_json
  37. # - xml
  38. # supported_auth:
  39. # - cookie
  40. # - basic_auth
  41. #
  42. # hal_json is the only format supported for POST and PATCH methods.
  43. #
  44. # The full documentation is located at
  45. # https://www.drupal.org/documentation/modules/rest.
  46. # Set the domain for REST type and relation links.
  47. # If left blank, the site's domain will be used.
  48. link_domain: ~