summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/3rd_party/static/swagger/endpoint.html
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-05-12 18:33:00 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-05-17 16:43:12 +0800
commita1a745b4820ec46a2e707d77f6178cf9e97654f6 (patch)
tree08521a4c07d8f06a28e3c026c2614ecf6d97e2f7 /utils/test/testapi/3rd_party/static/swagger/endpoint.html
parentf1415796efec4984962f9817639a5ff2cd9ecd41 (diff)
refactor static_path to accomodate web portal
move tornado_swagger/static to opnfv_testapi/static move swagger related 3rd libs to 3rd_party/swagger Change-Id: I32bba10584c99d13687b93f32577e37581db0c63 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/testapi/3rd_party/static/swagger/endpoint.html')
-rw-r--r--utils/test/testapi/3rd_party/static/swagger/endpoint.html77
1 files changed, 77 insertions, 0 deletions
diff --git a/utils/test/testapi/3rd_party/static/swagger/endpoint.html b/utils/test/testapi/3rd_party/static/swagger/endpoint.html
new file mode 100644
index 000000000..4ae3bde0c
--- /dev/null
+++ b/utils/test/testapi/3rd_party/static/swagger/endpoint.html
@@ -0,0 +1,77 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Api Docs for {{path}}</title>
+ <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
+ <style>
+ body {margin-top: 60px;}
+ </style>
+ </head>
+ <body>
+ <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
+ <div class="container">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ </div>
+ <!-- Collect the nav links, forms, and other content for toggling -->
+ <div class="collapse navbar-collapse navbar-ex1-collapse">
+ <ul class="nav navbar-nav">
+ {% for operation in operations %}
+ <li><a href="#{{operation.method}}">{{operation.method}}</a></li>
+ {% endfor %}
+ </ul>
+ </div><!-- /.navbar-collapse -->
+ </div><!-- /.container -->
+ </nav>
+ <div class="container">
+ <div class="row">
+ <div class="col-lg-12">
+ <h1>{{path}}</h1>
+ <p class='lead'>{{description if description != None}}</p>
+ </div>
+ <div class="col-lg-12">
+ {% for operation in operations %}
+ <div class="panel panel-success" id='{{operation.method}}'>
+ <div class="panel-heading">
+ <h3 class="panel-title">{{operation.method}}</h3>
+ <p>{{operation.summary if operation.summary != None}}</p>
+ </div>
+ <div class="panel-body">
+ {% if operation.parameters %}
+ <h4>Parameters</h4>
+ <dl>
+ {% for parameter in operation.parameters %}
+ <dt>
+ {{parameter.name}}
+ {% if parameter.description %}
+ - {{parameter.description}}
+ {% endif %}
+ </dt>
+ <dd>Type: {{parameter.dataType}}</dd>
+ <dd>Allow Multiple: {{parameter.allowMultiple}}</dd>
+ <dd>Required: {{parameter.required}}</dd>
+ {% endfor %}
+ </dl>
+ {% endif %}
+ {% if operation.notes %}
+ <p><strong>Implementation notes</strong>: {{operation.notes}}</p>
+ {% endif %}
+ {% if operation.responseClass %}
+ <p><strong>Response Class</strong>: {{operation.responseClass}}</p>
+ {% endif %}
+ </div>
+ </div>
+ {% endfor %}
+ </div>
+ </div><!-- /.container -->
+ <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
+ <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
+ </body>
+</html>