2013-07-20 01:13:25 +00:00
|
|
|
# Enable all methods on nodes.
|
2013-12-01 13:54:50 +00:00
|
|
|
# You must enable Hal and Basic_auth modules for this to work. Also, if you are
|
|
|
|
# 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.
|
2013-07-20 01:13:25 +00:00
|
|
|
resources:
|
|
|
|
entity:node:
|
2013-12-01 13:54:50 +00:00
|
|
|
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
|
2013-07-20 01:13:25 +00:00
|
|
|
|
2013-12-01 13:54:50 +00:00
|
|
|
# Multiple formats and multiple authentication providers can be defined for a
|
|
|
|
# resource:
|
2013-08-13 21:12:48 +00:00
|
|
|
#
|
2013-12-01 13:54:50 +00:00
|
|
|
# resources:
|
|
|
|
# entity:node:
|
|
|
|
# GET:
|
|
|
|
# supported_formats:
|
|
|
|
# - json
|
|
|
|
# - hal_json
|
|
|
|
# - xml
|
|
|
|
# supported_auth:
|
|
|
|
# - cookie
|
|
|
|
# - basic_auth
|
|
|
|
#
|
|
|
|
# hal_json is the only format supported for POST and PATCH methods.
|
|
|
|
#
|
|
|
|
# The full documentation is located at
|
|
|
|
# https://drupal.org/documentation/modules/rest
|