Eliminate operational concept
[netconf.git] / restconf / sal-rest-docgen / src / main / java / org / opendaylight / netconf / sal / rest / doc / mountpoints / MountPointSwagger.java
index f347e6bd5460a0e6992fb19897284b894baf5c3a..bc7ff0bf526730da6ed2186427a3b704b30694de 100644 (file)
@@ -209,9 +209,7 @@ public class MountPointSwagger implements DOMMountPointListener, AutoCloseable {
                 context);
 
         final ObjectNode pathsObject = JsonNodeFactory.instance.objectNode();
-        createGetPathItem("config", "Queries the config (startup) datastore on the mounted hosted.",
-                context, deviceName, pathsObject);
-        createGetPathItem("operational", "Queries the operational (running) datastore on the mounted hosted.",
+        createGetPathItem("data", "Queries the config (startup) datastore on the mounted hosted.",
                 context, deviceName, pathsObject);
         createGetPathItem("operations", "Queries the available operations (RPC calls) on the mounted hosted.",
                 context, deviceName, pathsObject);
@@ -229,7 +227,7 @@ public class MountPointSwagger implements DOMMountPointListener, AutoCloseable {
         pathItem.set("get", operationObject);
         operationObject.put(DESCRIPTION_KEY, description);
         operationObject.put(SUMMARY_KEY, HttpMethod.GET + SUMMARY_SEPARATOR + deviceName + SUMMARY_SEPARATOR
-                + swaggerGenerator.getResourcePathPart(resourceType));
+                + resourceType);
         operationObject.set(TAGS_KEY, buildTagsValue(Optional.of(deviceName), "GET root"));
         final ObjectNode okResponse = JsonNodeFactory.instance.objectNode();
         okResponse.put(DESCRIPTION_KEY, Response.Status.OK.getReasonPhrase());