Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile swagger #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
135 changes: 0 additions & 135 deletions dist/css/highlight.default.css

This file was deleted.

1,069 changes: 0 additions & 1,069 deletions dist/css/screen.css

This file was deleted.

Binary file removed dist/images/logo_small.png
Binary file not shown.
Binary file removed dist/images/pet_store_api.png
Binary file not shown.
Binary file removed dist/images/throbber.gif
Binary file not shown.
Binary file removed dist/images/wordnik_api.png
Binary file not shown.
78 changes: 0 additions & 78 deletions dist/index.html

This file was deleted.

38 changes: 0 additions & 38 deletions dist/lib/backbone-min.js

This file was deleted.

2,278 changes: 0 additions & 2,278 deletions dist/lib/handlebars-1.0.0.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/lib/highlight.7.3.pack.js

This file was deleted.

2 changes: 0 additions & 2 deletions dist/lib/jquery-1.8.0.min.js

This file was deleted.

18 changes: 0 additions & 18 deletions dist/lib/jquery.ba-bbq.min.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/lib/jquery.slideto.min.js

This file was deleted.

8 changes: 0 additions & 8 deletions dist/lib/jquery.wiggle.min.js

This file was deleted.

2,765 changes: 0 additions & 2,765 deletions dist/lib/shred.bundle.js

This file was deleted.

193 changes: 0 additions & 193 deletions dist/lib/shred/content.js

This file was deleted.

1,291 changes: 0 additions & 1,291 deletions dist/lib/swagger.js

This file was deleted.

32 changes: 0 additions & 32 deletions dist/lib/underscore-min.js

This file was deleted.

2,119 changes: 0 additions & 2,119 deletions dist/swagger-ui.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/swagger-ui.min.js

This file was deleted.

1,070 changes: 0 additions & 1,070 deletions src/main/html/css/screen.css

This file was deleted.

13 changes: 4 additions & 9 deletions src/main/html/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Swagger UI</title>
<title>OSv API</title>
<link href='//fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'/>
<link href='css/highlight.default.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
@@ -19,7 +19,7 @@
<script type="text/javascript">
$(function () {
window.swaggerUi = new SwaggerUi({
url: "http://petstore.swagger.wordnik.com/api/api-docs",
url: "http://"+ window.location.host +"/api/api-docs.json",
dom_id: "swagger-ui-container",
supportedSubmitMethods: ['get', 'post', 'put', 'delete'],
onComplete: function(swaggerApi, swaggerUi){
@@ -54,15 +54,9 @@
<body>
<div id='header'>
<div class="swagger-ui-wrap">
<a id="logo" href="http://swagger.wordnik.com">swagger</a>
<a id="logo" href="http://osv.io">OSv</a>

<form id='api_selector'>
<div class='input icon-btn'>
<img id="show-pet-store-icon" src="images/pet_store_api.png" title="Show Swagger Petstore Example Apis">
</div>
<div class='input icon-btn'>
<img id="show-wordnik-dev-icon" src="images/wordnik_api.png" title="Show Wordnik Developer Apis">
</div>
<div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
<div class='input'><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/></div>
<div class='input'><a id="explore" href="#">Explore</a></div>
@@ -81,3 +75,4 @@
</body>

</html>

4 changes: 2 additions & 2 deletions src/main/less/screen.less
Original file line number Diff line number Diff line change
@@ -8,7 +8,6 @@
font-size: 1.5em;
font-weight: bold;
text-decoration: none;
background: transparent url(../images/logo_small.png) no-repeat left center;
padding: 20px 0 20px 40px;
color: white;
}
@@ -64,4 +63,5 @@
min-height: 30px;
text-align: center;
padding-top: 10px;
}
}