swagger-ui_rails_audionerd 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +22 -0
- data/README.md +45 -0
- data/Rakefile +46 -0
- data/app/assets/images/explorer_icons.png +0 -0
- data/app/assets/images/logo_small.png +0 -0
- data/app/assets/images/throbber.gif +0 -0
- data/app/assets/javascripts/swagger-oauth.js +211 -0
- data/app/assets/javascripts/swagger-ui/index.js +12 -0
- data/app/assets/javascripts/swagger-ui/lib/backbone-min.js +15 -0
- data/app/assets/javascripts/swagger-ui/lib/handlebars-2.0.0.js +28 -0
- data/app/assets/javascripts/swagger-ui/lib/highlight.7.3.pack.js +1 -0
- data/app/assets/javascripts/swagger-ui/lib/jquery-1.8.0.min.js +2 -0
- data/app/assets/javascripts/swagger-ui/lib/jquery.ba-bbq.min.js +18 -0
- data/app/assets/javascripts/swagger-ui/lib/jquery.slideto.min.js +1 -0
- data/app/assets/javascripts/swagger-ui/lib/jquery.wiggle.min.js +8 -0
- data/app/assets/javascripts/swagger-ui/lib/marked.js +1272 -0
- data/app/assets/javascripts/swagger-ui/lib/shred.bundle.js +2765 -0
- data/app/assets/javascripts/swagger-ui/lib/swagger-client.js +3294 -0
- data/app/assets/javascripts/swagger-ui/lib/underscore-min.js +6 -0
- data/app/assets/javascripts/swagger-ui/swagger-oauth.js +279 -0
- data/app/assets/javascripts/swagger-ui/swagger-ui.js.erb +2240 -0
- data/app/assets/stylesheets/swagger-ui/index.css +5 -0
- data/app/assets/stylesheets/swagger-ui/reset.css +125 -0
- data/app/assets/stylesheets/swagger-ui/screen.css +1256 -0
- data/app/views/swagger_ui/_swagger_ui.html.erb +37 -0
- data/lib/swagger-ui_rails.rb +7 -0
- data/lib/swagger-ui_rails/engine.rb +14 -0
- data/lib/swagger-ui_rails/version.rb +5 -0
- metadata +100 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
<script type="text/javascript">
|
2
|
+
$(function () {
|
3
|
+
window.swaggerUi = new SwaggerUi({
|
4
|
+
url: '<%= discovery_url %>',
|
5
|
+
<% if defined?(api_key) %>
|
6
|
+
apiKey: '<%= api_key %>',
|
7
|
+
<% end %>
|
8
|
+
dom_id:"swagger-ui-container",
|
9
|
+
supportHeaderParams: false,
|
10
|
+
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
|
11
|
+
onComplete: function(swaggerApi, swaggerUi){
|
12
|
+
if(console) {
|
13
|
+
console.log("Loaded SwaggerUI")
|
14
|
+
console.log(swaggerApi);
|
15
|
+
console.log(swaggerUi);
|
16
|
+
}
|
17
|
+
$('pre code').each(function(i, e) {hljs.highlightBlock(e)});
|
18
|
+
},
|
19
|
+
onFailure: function(data) {
|
20
|
+
if(console) {
|
21
|
+
console.log("Unable to Load SwaggerUI");
|
22
|
+
console.log(data);
|
23
|
+
}
|
24
|
+
},
|
25
|
+
docExpansion: "none"
|
26
|
+
});
|
27
|
+
|
28
|
+
window.swaggerUi.load();
|
29
|
+
});
|
30
|
+
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="message-bar" class="swagger-ui-wrap">
|
34
|
+
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Swagger
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
|
4
|
+
initializer :assets do |config|
|
5
|
+
Rails.application.config.assets.precompile += %w{ swagger-ui.js }
|
6
|
+
Rails.application.config.assets.precompile += %w{ swagger-oauth.js }
|
7
|
+
Rails.application.config.assets.precompile += %w{ swagger-ui.css }
|
8
|
+
Rails.application.config.assets.precompile += %w{ swagger-ui/reset.css }
|
9
|
+
Rails.application.config.assets.precompile += %w{ swagger-ui/screen.css }
|
10
|
+
Rails.application.config.assets.paths << root.join("app", "assets")
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: swagger-ui_rails_audionerd
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Stjepan Hadjic
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-05-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: A gem to add swagger-ui to rails asset pipeline
|
42
|
+
email:
|
43
|
+
- Stjepan.hadjic@infinum.hr
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- LICENSE.txt
|
49
|
+
- README.md
|
50
|
+
- Rakefile
|
51
|
+
- app/assets/images/explorer_icons.png
|
52
|
+
- app/assets/images/logo_small.png
|
53
|
+
- app/assets/images/throbber.gif
|
54
|
+
- app/assets/javascripts/swagger-oauth.js
|
55
|
+
- app/assets/javascripts/swagger-ui/index.js
|
56
|
+
- app/assets/javascripts/swagger-ui/lib/backbone-min.js
|
57
|
+
- app/assets/javascripts/swagger-ui/lib/handlebars-2.0.0.js
|
58
|
+
- app/assets/javascripts/swagger-ui/lib/highlight.7.3.pack.js
|
59
|
+
- app/assets/javascripts/swagger-ui/lib/jquery-1.8.0.min.js
|
60
|
+
- app/assets/javascripts/swagger-ui/lib/jquery.ba-bbq.min.js
|
61
|
+
- app/assets/javascripts/swagger-ui/lib/jquery.slideto.min.js
|
62
|
+
- app/assets/javascripts/swagger-ui/lib/jquery.wiggle.min.js
|
63
|
+
- app/assets/javascripts/swagger-ui/lib/marked.js
|
64
|
+
- app/assets/javascripts/swagger-ui/lib/shred.bundle.js
|
65
|
+
- app/assets/javascripts/swagger-ui/lib/swagger-client.js
|
66
|
+
- app/assets/javascripts/swagger-ui/lib/underscore-min.js
|
67
|
+
- app/assets/javascripts/swagger-ui/swagger-oauth.js
|
68
|
+
- app/assets/javascripts/swagger-ui/swagger-ui.js.erb
|
69
|
+
- app/assets/stylesheets/swagger-ui/index.css
|
70
|
+
- app/assets/stylesheets/swagger-ui/reset.css
|
71
|
+
- app/assets/stylesheets/swagger-ui/screen.css
|
72
|
+
- app/views/swagger_ui/_swagger_ui.html.erb
|
73
|
+
- lib/swagger-ui_rails.rb
|
74
|
+
- lib/swagger-ui_rails/engine.rb
|
75
|
+
- lib/swagger-ui_rails/version.rb
|
76
|
+
homepage: https://github.com/audionerd/swagger-ui_rails
|
77
|
+
licenses:
|
78
|
+
- MIT
|
79
|
+
metadata: {}
|
80
|
+
post_install_message:
|
81
|
+
rdoc_options: []
|
82
|
+
require_paths:
|
83
|
+
- lib
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
requirements: []
|
95
|
+
rubyforge_project:
|
96
|
+
rubygems_version: 2.4.5
|
97
|
+
signing_key:
|
98
|
+
specification_version: 4
|
99
|
+
summary: Add swagger-ui to your rails app easily
|
100
|
+
test_files: []
|