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