Merge "Bug-915: Adding static document generation. Currently the API Explorer can...
[controller.git] / opendaylight / md-sal / sal-rest-docgen / src / main / resources / explorer / static / index.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <title>RestConf Documentation</title>
5     <link href='fonts.css'
6           rel='stylesheet' type='text/css' />   <!--original location: //fonts.googleapis.com/css?family=Droid+Sans:400,700 -->
7     <link href='../css/highlight.default.css' media='screen' rel='stylesheet'
8           type='text/css' />
9     <link href='../css/screen.css' media='screen' rel='stylesheet'
10           type='text/css' />
11     <link rel="stylesheet" type="text/css" href="opendaylight.css">
12     <link rel="stylesheet" type="text/css"
13           href="../css/ui-lightness/jquery-ui-1.10.4.custom.min.css">
14     <script type="text/javascript" src="../lib/shred.bundle.js"></script>
15     <script src='../lib/jquery-1.8.0.min.js' type='text/javascript'></script>
16     <script src='../lib/jquery-ui-1.11.0.min.js' type="text/javascript"></script>
17     <script src='../lib/jquery.slideto.min.js' type='text/javascript'></script>
18     <script src='../lib/jquery.wiggle.min.js' type='text/javascript'></script>
19     <script src='../lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
20     <script src='../lib/handlebars-1.0.0.js' type='text/javascript'></script>
21     <script src='../lib/underscore-min.js' type='text/javascript'></script>
22     <script src='../lib/backbone-min.js' type='text/javascript'></script>
23     <script src='swagger.js' type='text/javascript'></script>
24     <script src='swagger-ui.js' type='text/javascript'></script>
25     <script src='../lib/odl/list_mounts.js' type='text/javascript'></script>
26     <script src='../lib/highlight.7.3.pack.js' type='text/javascript'></script>
27     <script src='../lib/odl/swagger.js' type='text/javascript'></script>
28     <script src='resources.js' type='text/javascript'></script>
29
30     <script type="text/javascript">
31
32         //reloads the swagger UI documentation for the specified mount.
33         var loadMount = function(mountIndex, mountPath) {
34             $("#message").empty();
35             $("#message").append( "<p>Loading...</p>" );
36             loadSwagger("/apidoc/apis/mounts/" + mountIndex,
37                     "swagger-ui-container");
38             $("#message").empty();
39             $("#message").append( "<h2><b>Showing mount points for " + mountPath + "</b></h2>");
40         }
41
42         //clears the swagger UI and adds text prompting use to select a mount point.
43         var selectAMount = function(string) {
44             $("#swagger-ui-container").empty();
45             $("#message").empty();
46             $("#message").append("<p>Select a mount point.</p>");
47         }
48
49         //loads the root swagger documenation (which comes from RestConf)
50         var loadRootSwagger = function() {
51             $("#message").empty();
52             loadSwagger("/apidoc/apis", "swagger-ui-container");
53         }
54
55         //main method to initialize the mount list / swagger docs / tabs on page load
56         $(function() {
57             $("#tabs").tabs();
58
59             loadMountList($("#mountlist"));
60
61             loadRootSwagger();
62         });
63     </script>
64 </head>
65
66 <body>
67 <div>
68     <!-- style="background-color: #FCA000;" -->
69     <div class="swagger-ui-wrap ui-tabs">
70         <table>
71             <tr>
72                 <td><img src="../images/logo_small.png" /></td>
73                 <td><h1 width="100%">OpenDaylight RestConf API
74                     Documentation</h1></td>
75             </tr>
76         </table>
77     </div>
78 </div>
79
80 <div class="navbar-inner">
81     <div class="brand"></div>
82 </div>
83
84 <!--  defines the div shells which represent the jquery tabs -->
85 <div id="tabs" class="swagger-ui-wrap">
86     <ul>
87         <li><a href="#Controller" onclick="loadRootSwagger()">Controller
88             Resources</a></li>
89     </ul>
90
91     <div id="Controller">
92         <div>
93             <h3>Below are the list of APIs supported by the Controller.</h3>
94         </div>
95     </div>
96 </div>
97
98 <div class="swagger-ui-wrap"><hr/></div>
99
100 <!-- messages -->
101 <div id="message" class="swagger-ui-wrap"></div>
102
103 <!-- the swagger is always loaded in this div -->
104 <div id="swagger-ui-container" class="swagger-ui-wrap"></div>
105
106 <div id="message-bar" class="swagger-ui-wrap">&nbsp;</div>
107 </body>
108
109 </html>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.