 restui.post_update.php | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/restui.post_update.php b/restui.post_update.php
new file mode 100644
index 0000000..591e1c2
--- /dev/null
+++ b/restui.post_update.php
@@ -0,0 +1,20 @@
+<?php
+
+/**
+ * @file
+ * Post update functions for REST UI.
+ */
+
+/**
+ * Simplify method-granularity REST resource config to resource-granularity.
+ *
+ * Re-runs the REST module's update path, because the REST UI module only
+ * allowed creating 'method' granularity resources until version 1.14.
+ *
+ * @see https://www.drupal.org/node/2869443
+ * @see https://www.drupal.org/node/2721595
+ */
+function restui_post_update_resource_granularity() {
+  require_once \Drupal::root() . '/core/modules/rest/rest.post_update.php';
+  rest_post_update_resource_granularity();
+}
