mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-22 22:06:43 +00:00
Cleanup .gitignore files etc.
This commit is contained in:
parent
06d02fa364
commit
02159f2136
19
.gitignore
vendored
19
.gitignore
vendored
@ -1,17 +1,2 @@
|
||||
.bundle/
|
||||
log/*.log
|
||||
pkg/
|
||||
spec/dummy/db/*.sqlite3
|
||||
spec/dummy/db/*.sqlite3-journal
|
||||
spec/dummy/log/*.log
|
||||
spec/dummy/tmp/
|
||||
spec/dummy/public/assets
|
||||
spec/dummy/.sass-cache
|
||||
spec/generators/swagger_rails/tmp
|
||||
bower_components/*
|
||||
!bower_components/swagger-ui
|
||||
bower_components/swagger-ui/*
|
||||
!bower_components/swagger-ui/dist
|
||||
.ruby-version
|
||||
.idea
|
||||
spec/dummy/swagger/v1_api.json
|
||||
**/*/tmp
|
||||
**/*/log
|
||||
|
||||
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +0,0 @@
|
||||
[submodule "swagger-ui"]
|
||||
path = swagger-ui
|
||||
url = https://github.com/swagger-api/swagger-ui.git
|
||||
@ -1,14 +0,0 @@
|
||||
Rswag::Api.configure do |c|
|
||||
|
||||
# Specify a root folder where Swagger JSON files are located
|
||||
# This is used by the Swagger middleware to serve requests for API descriptions
|
||||
# NOTE: If you're using rswag-specs to generate Swagger, you'll need to ensure
|
||||
# that it's configured to generate files in the same folder
|
||||
c.swagger_root = Rails.root.to_s + '/swagger'
|
||||
|
||||
# Inject a lamda function to alter the returned Swagger prior to serialization
|
||||
# The function will have access to the rack env for the current request
|
||||
# For example, you could leverage this to dynamically assign the "host" property
|
||||
#
|
||||
#c.swagger_filter = lambda { |swagger, env| swagger['host'] = env['HTTP_HOST'] }
|
||||
end
|
||||
@ -1,4 +0,0 @@
|
||||
TestApp::Application.routes.draw do
|
||||
mount Rswag::Api::Engine => '/api-docs'
|
||||
|
||||
end
|
||||
@ -1,25 +0,0 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.configure do |config|
|
||||
# Specify a root folder where Swagger JSON files are generated
|
||||
# NOTE: If you're using the rswag-api to serve API descriptions, you'll need
|
||||
# to ensure that it's confiugred to server Swagger from the same folder
|
||||
config.swagger_root = Rails.root.to_s + '/swagger'
|
||||
|
||||
# Define one or more Swagger documents and provide global metadata for each one
|
||||
# When you run the 'rswag:specs:to_swagger' rake task, the complete Swagger will
|
||||
# be generated at the provided relative path under swagger_root
|
||||
# By default, the operations defined in spec files are added to the first
|
||||
# document below. You can override this behavior by adding a swagger_doc tag to the
|
||||
# the root example_group in your specs, e.g. describe '...', swagger_doc: 'v2/swagger.json'
|
||||
config.swagger_docs = {
|
||||
'v1/swagger.json' => {
|
||||
swagger: '2.0',
|
||||
info: {
|
||||
title: 'API V1',
|
||||
version: 'v1'
|
||||
},
|
||||
paths: {}
|
||||
}
|
||||
}
|
||||
end
|
||||
@ -1,9 +0,0 @@
|
||||
Rswag::Ui.configure do |c|
|
||||
|
||||
# List the Swagger endpoints that you want to be documented through the swagger-ui
|
||||
# The first parameter is the path (absolute or relative to the UI host) to the corresponding
|
||||
# JSON endpoint and the second is a title that will be displayed in the document selector
|
||||
# NOTE: If you're using rspec-api to expose Swagger files (under swagger_root) as JSON endpoints,
|
||||
# then the list below should correspond to the relative paths for those endpoints
|
||||
c.swagger_endpoint '/api-docs/v1/swagger.json', 'API V1 Docs'
|
||||
end
|
||||
@ -1,4 +0,0 @@
|
||||
TestApp::Application.routes.draw do
|
||||
mount Rswag::Ui::Engine => '/api-docs'
|
||||
|
||||
end
|
||||
@ -1,2 +0,0 @@
|
||||
TestApp::Application.routes.draw do
|
||||
end
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
I"Ã/Users/richie/src/rswag/rswag-ui/vendor/assets/components/swagger-ui/lib/object-assign-pollyfill.js?type=application/javascript&id=5229498770521a363247c60402e9fa84384affc5e47c05b56b2e4ca6894973e9:ET
|
||||
@ -1 +0,0 @@
|
||||
"%¨BÓó¶T^T—ò(~ÑYPu7Ÿe%¿óÞWª—
|
||||
@ -1 +0,0 @@
|
||||
I"¶/Users/richie/src/rswag/rswag-ui/vendor/assets/components/swagger-ui/swagger-ui.min.js?type=application/javascript&id=a59c808afb12537e5db3623da47efc57c0aed31a859dbb4603019af7f50cbd17:ET
|
||||
@ -1 +0,0 @@
|
||||
"%J@<40>Ы<EFBFBD> ЊњSIаDXЙ'<27>В+<2B>9юORrk/FfPe<50>
|
||||
@ -1,2 +0,0 @@
|
||||
[o:Set:
|
||||
@hash{I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"pfile-digest:///Users/richie/src/rswag/rswag-ui/vendor/assets/components/swagger-ui/lib/jquery.wiggle.min.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TT
|
||||
Binary file not shown.
Binary file not shown.
@ -1,2 +0,0 @@
|
||||
[o:Set:
|
||||
@hash{I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"0processors:type=text/css&file_type=text/css;TTI"jfile-digest:///Users/richie/src/rswag/rswag-ui/vendor/assets/components/swagger-ui/css/typography.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TT
|
||||
@ -1,2 +0,0 @@
|
||||
[o:Set:
|
||||
@hash{I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"ofile-digest:///Users/richie/src/rswag/rswag-ui/vendor/assets/components/swagger-ui/lib/jquery-1.8.0.min.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TT
|
||||
@ -1 +0,0 @@
|
||||
I"¼/Users/richie/src/rswag/rswag-ui/vendor/assets/components/swagger-ui/lib/jquery-1.8.0.min.js?type=application/javascript&id=90dcfacd848c923835bcbb5b9f23fa53a6d4b92b299c8dbfcb8babae4358fb27:ET
|
||||
@ -1 +0,0 @@
|
||||
I"À/Users/richie/src/rswag/rswag-ui/vendor/assets/components/swagger-ui/lib/marked.js?type=application/javascript&pipeline=self&id=659cce685356901e5137ef20e29d685c53a0793258ab4f0d8c0264b430601392:ET
|
||||
@ -1 +0,0 @@
|
||||
I"È/Users/richie/src/rswag/rswag-ui/vendor/assets/components/swagger-ui/lib/jsoneditor.min.js?type=application/javascript&pipeline=self&id=6b69a9c6c48c05ec4806436c110f31dafabc9110a09ebff88b8a84c9f1dc2bb1:ET
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
I"/Users/richie/src/rswag/rswag-ui/vendor/assets/components/swagger-ui/images/logo_small.png?type=image/png&id=6cd604278a7d2a3f2201f0c73cd941b39cdfb6e6fb4aa9a38a96a3893e4175c5:ET
|
||||
@ -1,2 +0,0 @@
|
||||
[o:Set:
|
||||
@hash{I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"efile-digest:///Users/richie/src/rswag/rswag-ui/vendor/assets/components/swagger-ui/lib/marked.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TT
|
||||
Binary file not shown.
@ -1,2 +0,0 @@
|
||||
[o:Set:
|
||||
@hash{I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"pfile-digest:///Users/richie/src/rswag/rswag-ui/vendor/assets/components/swagger-ui/lib/jquery.ba-bbq.min.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TT
|
||||
Binary file not shown.
Binary file not shown.
@ -1,3 +0,0 @@
|
||||
[o:Set:
|
||||
@hash{
|
||||
I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"jfile-digest:///Users/richie/src/rswag/rswag-ui/vendor/assets/components/swagger-ui/css/typography.css;TT
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user