Remove OperationsPostPath
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / server / api / DatabindPath.java
index 6532d6d32458d3660b26b12c4fcd918e8cfe8d31..72e1fe45601289c2d322e96e35b20d0a96f27d77 100644 (file)
@@ -91,6 +91,12 @@ public sealed interface DatabindPath extends DatabindAware {
             requireNonNull(instance);
             requireNonNull(schema);
         }
+
+        // FIXME: this is the 'Datastore' constructor
+        public Data(final DatabindContext databind) {
+            this(databind, Inference.ofDataTreePath(databind.modelContext()), YangInstanceIdentifier.of(),
+                databind.schemaTree().getRoot());
+        }
     }
 
     /**
@@ -133,7 +139,10 @@ public sealed interface DatabindPath extends DatabindAware {
 
     /**
      * An intermediate trait of {@link DatabindPath}s which are referencing a YANG operation. This can be either
-     * an {@link Action} on an {@link Rpc}.
+     * an {@link Action}, as defined in
+     * <a href="https://www.rfc-editor.org/rfc/rfc8040#section-4.4.2">RFC8040 Invoke Operation Mode</a> or
+     * an {@link Rpc}, as defined in
+     * <a href="https://www.rfc-editor.org/rfc/rfc8040#section-3.6">RFC8040 Operation Resource</a>.
      */
     sealed interface OperationPath extends DatabindPath {
         /**