3 ~ Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
5 ~ This program and the accompanying materials are made available under the
6 ~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 ~ and is available at http://www.eclipse.org/legal/epl-v10.html
12 <title>RestConf Documentation</title>
13 <link href='../../../eplorer/static/fonts.css'
14 rel='stylesheet' type='text/css' /> <!--original location: //fonts.googleapis.com/css?family=Droid+Sans:400,700 -->
15 <link href='../../../explorer/css/highlight.default.css' media='screen' rel='stylesheet'
17 <link href='../../../explorer/css/screen.css' media='screen' rel='stylesheet'
19 <link rel="stylesheet" type="text/css" href="../../../eplorer/static/opendaylight.css">
20 <link rel="stylesheet" type="text/css"
21 href="../../../explorer/css/ui-lightness/jquery-ui-1.10.4.custom.min.css">
22 <script type="text/javascript" src="../../../explorer/lib/shred.bundle.js"></script>
23 <script src='../../../explorer/lib/jquery-1.8.0.min.js' type='text/javascript'></script>
24 <script src='../../../explorer/lib/jquery-ui-1.11.0.min.js' type="text/javascript"></script>
25 <script src='../../../explorer/lib/jquery.slideto.min.js' type='text/javascript'></script>
26 <script src='../../../explorer/lib/jquery.wiggle.min.js' type='text/javascript'></script>
27 <script src='../../../explorer/lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
28 <script src='../../../explorer/lib/handlebars-1.0.0.js' type='text/javascript'></script>
29 <script src='../../../explorer/lib/underscore-min.js' type='text/javascript'></script>
30 <script src='../../../explorer/lib/backbone-min.js' type='text/javascript'></script>
31 <script src='../../explorer/swagger.js' type='text/javascript'></script>
32 <script src='../../explorer/swagger-ui.js' type='text/javascript'></script>
33 <script src='../lib/odl/list_mounts.js' type='text/javascript'></script>
34 <script src='../../../explorer/lib/highlight.7.3.pack.js' type='text/javascript'></script>
35 <script src='../../../explorer/lib/odl/swagger.js' type='text/javascript'></script>
36 <script src='resources.js' type='text/javascript'></script>
38 <script type="text/javascript">
40 //reloads the swagger UI documentation for the specified mount.
41 var loadMount = function(mountIndex, mountPath) {
42 $("#message").empty();
43 $("#message").append( "<p>Loading...</p>" );
44 loadSwagger("/apidoc/apis/mounts/" + mountIndex,
45 "swagger-ui-container");
46 $("#message").empty();
47 $("#message").append( "<h2><b>Showing mount points for " + mountPath + "</b></h2>");
50 //clears the swagger UI and adds text prompting use to select a mount point.
51 var selectAMount = function(string) {
52 $("#swagger-ui-container").empty();
53 $("#message").empty();
54 $("#message").append("<p>Select a mount point.</p>");
57 //loads the root swagger documenation (which comes from RestConf)
58 var loadRootSwagger = function() {
59 $("#message").empty();
60 loadSwagger("/apidoc/apis", "swagger-ui-container");
63 //main method to initialize the mount list / swagger docs / tabs on page load
67 loadMountList($("#mountlist"));
76 <!-- style="background-color: #FCA000;" -->
77 <div class="swagger-ui-wrap ui-tabs">
80 <td><img src="../../../explorer/images/logo_small.png"/></td>
81 <td><h1 width="100%">OpenDaylight RestConf API
82 Documentation</h1></td>
88 <div class="navbar-inner">
89 <div class="brand"></div>
92 <!-- defines the div shells which represent the jquery tabs -->
93 <div id="tabs" class="swagger-ui-wrap">
95 <li><a href="#Controller" onclick="loadRootSwagger()">Controller
101 <h3>Below are the list of APIs supported by the Controller.</h3>
106 <div class="swagger-ui-wrap"><hr/></div>
109 <div id="message" class="swagger-ui-wrap"></div>
111 <!-- the swagger is always loaded in this div -->
112 <div id="swagger-ui-container" class="swagger-ui-wrap"></div>
114 <div id="message-bar" class="swagger-ui-wrap"> </div>