OpenAPI: Add possibility to change base path
[netconf.git] / restconf / sal-rest-docgen / src / main / java / org / opendaylight / netconf / sal / rest / doc / impl / ApiDocServiceImpl.java
index 3c24775fd14a095daf168b873e7e504a82623bb0..3149551c50fb58e410fcb743b6591705ef90d7a8 100644 (file)
@@ -61,6 +61,13 @@ public final class ApiDocServiceImpl implements ApiDocService {
             new ApiDocGeneratorRFC8040(schemaService));
     }
 
+    public ApiDocServiceImpl(final DOMSchemaService schemaService,
+                             final DOMMountPointService mountPointService,
+                             final String basePath) {
+        this(new MountPointOpenApiGeneratorRFC8040(schemaService, mountPointService, basePath),
+            new ApiDocGeneratorRFC8040(schemaService, basePath));
+    }
+
     @VisibleForTesting
     ApiDocServiceImpl(final MountPointOpenApiGeneratorRFC8040 mountPointOpenApiGeneratorRFC8040,
                       final ApiDocGeneratorRFC8040 apiDocGeneratorRFC8040) {