Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / module / content-entity / config / optional / rest.resource.entity.example.yml.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/config/optional/rest.resource.entity.example.yml.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/config/optional/rest.resource.entity.example.yml.twig
new file mode 100644 (file)
index 0000000..830ddea
--- /dev/null
@@ -0,0 +1,31 @@
+id: entity.{{ entity_type_id }}
+plugin_id: 'entity:{{ entity_type_id }}'
+granularity: method
+configuration:
+  GET:
+    supported_formats:
+      - json
+      - xml
+    supported_auth:
+      - cookie
+  POST:
+    supported_formats:
+      - json
+      - xml
+    supported_auth:
+      - cookie
+  PATCH:
+    supported_formats:
+      - json
+      - xml
+    supported_auth:
+      - cookie
+  DELETE:
+    supported_formats:
+      - json
+      - xml
+    supported_auth:
+      - cookie
+dependencies:
+  module:
+    - user