forked from loafle/openapi-generator-original
added files per #35
This commit is contained in:
1092
src/main/resources/swagger-static/assets/css/bootstrap-responsive.css
vendored
Normal file
1092
src/main/resources/swagger-static/assets/css/bootstrap-responsive.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
6057
src/main/resources/swagger-static/assets/css/bootstrap.css
vendored
Normal file
6057
src/main/resources/swagger-static/assets/css/bootstrap.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
src/main/resources/swagger-static/assets/css/site.css
Normal file
1
src/main/resources/swagger-static/assets/css/site.css
Normal file
@@ -0,0 +1 @@
|
||||
site.css
|
||||
135
src/main/resources/swagger-static/assets/css/style.css
Normal file
135
src/main/resources/swagger-static/assets/css/style.css
Normal file
@@ -0,0 +1,135 @@
|
||||
.line-numbers {
|
||||
margin-right: 1.0em;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding-bottom: 100px;
|
||||
}
|
||||
|
||||
.column_header_name {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.column_header_path {
|
||||
width: 350px;
|
||||
}
|
||||
|
||||
.column_header_name .column_header_param_type .column_header_data_type .column_header_return_type {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.expandable {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.main_content {
|
||||
margin-top: 80px;
|
||||
margin-left: 25px;
|
||||
margin-right: 25px;
|
||||
}
|
||||
|
||||
.header {
|
||||
position: fixed;
|
||||
text-align: left;
|
||||
background-color: black;
|
||||
float: left;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 70px auto;
|
||||
padding-bottom: 20px;
|
||||
box-shadow: rgba(0, 0, 0, 0.2) 0 2px 8px 5px;
|
||||
}
|
||||
|
||||
.top-bar h1 a {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.top-bar h1#logo a {
|
||||
width: auto;
|
||||
display: block;
|
||||
clear: none;
|
||||
float: left;
|
||||
background-position: left;;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.top-bar ul li {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.top-bar h1#logo span {
|
||||
display: block;
|
||||
clear: none;
|
||||
float: left;
|
||||
padding-top: 10px;
|
||||
padding-left: 10px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.top-bar h1#logo a span.light {
|
||||
color: #ffc97a;
|
||||
color: #666666;
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
.top-bar ul#nav {
|
||||
float: none;
|
||||
clear: both;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: block;
|
||||
float: right;
|
||||
clear: none;
|
||||
}
|
||||
|
||||
.top-bar ul#nav li {
|
||||
float: left;
|
||||
clear: none;
|
||||
margin: 0;
|
||||
padding: 2px 10px;
|
||||
border-right: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.top-bar ul#nav li:first-child, .top-bar ul#nav li.first {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.top-bar ul#nav li:last-child, .top-bar ul#nav li.last {
|
||||
padding-right: 0;
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.top-bar ul#nav li {
|
||||
border: none;
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
.top-bar ul#nav li a {
|
||||
display: block;
|
||||
padding: 8px 10px 8px 10px;
|
||||
color: #999999;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.top-bar ul#nav li a.strong {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.top-bar ul#nav li a:active, .top-bar ul#nav li a.active, .top-bar ul#nav li a:hover {
|
||||
-moz-border-radius: 4px;
|
||||
-webkit-border-radius: 4px;
|
||||
-o-border-radius: 4px;
|
||||
-ms-border-radius: 4px;
|
||||
-khtml-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
background-image: -webkit-gradient(linear, 0% 100%, 0% 0%, color-stop(0%, #ff5401), color-stop(100%, #ffa014));
|
||||
background-image: -moz-linear-gradient(bottom, #ff5401 0%, #ffa014 100%);
|
||||
background-image: linear-gradient(bottom, #ff5401 0%, #ffa014 100%);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.top-bar ul#nav:hover li {
|
||||
border-color: #222222;
|
||||
}
|
||||
BIN
src/main/resources/swagger-static/assets/images/logo.png
Normal file
BIN
src/main/resources/swagger-static/assets/images/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
2159
src/main/resources/swagger-static/assets/js/bootstrap.js
vendored
Normal file
2159
src/main/resources/swagger-static/assets/js/bootstrap.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2
src/main/resources/swagger-static/assets/js/jquery-1.8.3.min.js
vendored
Normal file
2
src/main/resources/swagger-static/assets/js/jquery-1.8.3.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
41
src/main/resources/swagger-static/index.mustache
Normal file
41
src/main/resources/swagger-static/index.mustache
Normal file
@@ -0,0 +1,41 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.css" media="screen">
|
||||
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap-responsive.css" media="screen">
|
||||
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
|
||||
|
||||
<title>REST API v1.1 Resources | Twitter Developers</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<div class="top-bar">
|
||||
<h1 id="logo"><a class="logo" href="/"><span>Swagger</span><span class="light">API Docs</span></a></h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_content">
|
||||
<h1>API Documentation</h1>
|
||||
{{#apis}}
|
||||
<h2>{{className}}</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th class="column_header_name">Name</th>
|
||||
<th class="column_header_path">Resource</th>
|
||||
<th class="column_header_notes">Notes</th>
|
||||
</tr>
|
||||
{{#operations}}
|
||||
{{#operation}}
|
||||
<tr>
|
||||
<td><a href="operations/{{{className}}}.html#{{{nickname}}}">{{{nickname}}}</a></td>
|
||||
<td>{{path}}</td>
|
||||
<td>{{{summary}}}{{#notes}}<div id="{{className}}_{{nickname}}" class="operation expandable">{{notes}}</div>{{/notes}}</td>
|
||||
</tr>
|
||||
{{/operation}}
|
||||
{{/operations}}
|
||||
</table>
|
||||
{{/apis}}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
82
src/main/resources/swagger-static/operation.mustache
Normal file
82
src/main/resources/swagger-static/operation.mustache
Normal file
@@ -0,0 +1,82 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../assets/css/bootstrap.css" media="screen">
|
||||
<link rel="stylesheet" type="text/css" href="../assets/css/bootstrap-responsive.css" media="screen">
|
||||
<link rel="stylesheet" type="text/css" href="../assets/css/style.css">
|
||||
|
||||
<title>REST API v1.1 Resources | Twitter Developers</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<div class="top-bar">
|
||||
<h1 id="logo"><a class="logo" href="/"><span>Swagger</span><span class="light">API Docs</span></a></h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="main_content">
|
||||
<h1>{{classname}}</h1>
|
||||
{{#operations}}
|
||||
{{#operation}}
|
||||
<a name="{{nickname}}"></a>
|
||||
<h2>{{nickname}}</h2>
|
||||
<h3>{{httpMethod}}: {{path}}</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th class="column_header_name">parameter</th>
|
||||
<th class="column_header_param_type">param type</th>
|
||||
<th class="column_header_data_type">data type</th>
|
||||
<th class="column_header_return_type">response type</th>
|
||||
<th class="column_header_notes">Description</th>
|
||||
</tr>
|
||||
<!-- body params -->
|
||||
{{#bodyParams}}
|
||||
<tr>
|
||||
<td>{{paramName}}<br/>{{#required}}required{{/required}}{{^required}}optional{{/required}}</td>
|
||||
<td>body</td>
|
||||
<td>{{swaggerDataType}}{{#allowMultiple}}*{{/allowMultiple}}</td>
|
||||
<td>{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}-{{/returnType}}</td>
|
||||
<td>{{description}}{{#notes}}<br/><div id="{{className}}_{{nickname}}" class="operation expandable">{{notes}}</div>{{/notes}}</td>
|
||||
</tr>
|
||||
{{/bodyParams}}
|
||||
|
||||
<!-- path params -->
|
||||
{{#pathParams}}
|
||||
<tr>
|
||||
<td>{{paramName}}<br/>{{#required}}required{{/required}}{{^required}}optional{{/required}}</td>
|
||||
<td>path</td>
|
||||
<td>{{swaggerDataType}}{{#allowMultiple}}*{{/allowMultiple}}</td>
|
||||
<td>{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}-{{/returnType}}</td>
|
||||
<td>{{description}}{{#notes}}<br/><div id="{{className}}_{{nickname}}" class="operation expandable">{{notes}}</div>{{/notes}}</td>
|
||||
</tr>
|
||||
{{/pathParams}}
|
||||
|
||||
<!-- query params -->
|
||||
{{#queryParams}}
|
||||
<tr>
|
||||
<td>{{paramName}}<br/>{{#required}}required{{/required}}{{^required}}optional{{/required}}</td>
|
||||
<td>query</td>
|
||||
<td>{{swaggerDataType}}{{#allowMultiple}}*{{/allowMultiple}}</td>
|
||||
<td>{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}-{{/returnType}}</td>
|
||||
<td>{{description}}{{#notes}}<br/><div id="{{className}}_{{nickname}}" class="operation expandable">{{notes}}</div>{{/notes}}</td>
|
||||
</tr>
|
||||
{{/queryParams}}
|
||||
|
||||
<!-- header params -->
|
||||
{{#headerParams}}
|
||||
<tr>
|
||||
<td>{{paramName}}<br/>{{#required}}required{{/required}}{{^required}}optional{{/required}}</td>
|
||||
<td>header</td>
|
||||
<td>{{swaggerDataType}}{{#allowMultiple}}*{{/allowMultiple}}</td>
|
||||
<td>{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}-{{/returnType}}</td>
|
||||
<td>{{description}}{{#notes}}<br/><div id="{{className}}_{{nickname}}" class="operation expandable">{{notes}}</div>{{/notes}}</td>
|
||||
</tr>
|
||||
{{/headerParams}}
|
||||
</table>
|
||||
{{/operation}}
|
||||
{{/operations}}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user