X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-docgen%2Fsrc%2Fmain%2Fresources%2Fexplorer%2Findex.html;h=05a76a4cb7ca0551d0bb55322b4603f78eb7fd4b;hb=0e7b83c0739ac579ca6dbf6a3f7992f70eb3000f;hp=b8f67750c369e819bae4352b17713b10a7d3bdbf;hpb=2f034183cfcbaacf2a287f1ddf00d367674868af;p=controller.git diff --git a/opendaylight/md-sal/sal-rest-docgen/src/main/resources/explorer/index.html b/opendaylight/md-sal/sal-rest-docgen/src/main/resources/explorer/index.html index b8f67750c3..05a76a4cb7 100644 --- a/opendaylight/md-sal/sal-rest-docgen/src/main/resources/explorer/index.html +++ b/opendaylight/md-sal/sal-rest-docgen/src/main/resources/explorer/index.html @@ -1,83 +1,117 @@ - Swagger UI - - - - - - - - - - - - - - - + + + + + + + + + + + + + - $('#input_apiKey').change(function() { - var key = $('#input_apiKey')[0].value; - console.log("key: " + key); - if(key && key.trim() != "") { - console.log("added key " + key); - window.authorizations.add("key", new ApiKeyAuthorization("api_key", key, "query")); - } - }) - window.swaggerUi.load(); - }); + + //clears the swagger UI and adds text prompting use to select a mount point. + var selectAMount = function(string) { + $("#swagger-ui-container").empty(); + $("#message").empty(); + $("#message").append("

Select a mount point.

"); + } + + //loads the root swagger documenation (which comes from RestConf) + var loadRootSwagger = function() { + $("#message").empty(); + loadSwagger("http://localhost:8080/apidoc/apis", "swagger-ui-container"); + } + + //main method to initialize the mount list / swagger docs / tabs on page load + $(function() { + $("#tabs").tabs(); + + loadMountList($("#mountlist")); + + loadRootSwagger(); + }); + - +
+ +
+ + + + + +

OpenDaylight RestConf API + Documentation

+
+
-
-   -
+ -
+ +
+ -
+
+
+

Below are the list of APIs supported by the Controller.

+
+
+
+
+

Mount Points - Select an API below for details on available + queries.

+
+
+
+
+ +

+ + +
+ + +
+